My input field has a long value and is set to readonly. Although I have applied overflow-x: hidden; to it, scrolling is still possible on mobile devices. I want to disable this scroll behavior. Can anyone provide a solution? Thank you for your assistance.
CodeSandbox :
https://codesandbox.io/p/sandbox/react-select-blur-onchange-forked-5lt4y5?file=%2Fsrc%2FApp.js
To Observe the Behavior:
Visit the provided sandbox link, inspect the page, switch to mobile view, tap and hold on the input field to see that it is scrollable.
Simple Code Example :
<div style={{ width: "200px" }}>
<input
style={{
overflowX: "hidden",
}}
value=" TEST TTESTEST TEST TEST TEST TEST"
/>
</div>