After applying the CSS rule pointer-events: none
to the text area, I noticed that the scrollbar was disabled.
I need the scrollbar to remain enabled so that users can scroll and view the entire content, while still preventing editing within the textarea using only CSS.
Despite trying several solutions, I have not been able to resolve this issue.
You can find my code on JSFiddle at https://jsfiddle.net/a9vxurqo/
Any assistance with this would be greatly appreciated.
I also attempted a solution provided here, but it did not work for me: https://codesandbox.io/s/scrollarea-wider-forked-sz9qnf?file=/src/App.js