You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In situations where the container is wider than the parent and scrolling is enabled, I cannot select the input - it's like the click is ignored. If the container doesn't overflow, and therefore there is no scrolling, it works as expected. The input's onClick event does fire however, and this hacky workaround fixes the issue:
<inputonClick={(e)=>e.target.focus()}/>
So it seems something is causing the input to un-focus after the ScrollContainer is clicked.
Cheers
The text was updated successfully, but these errors were encountered:
I'm using Tailwind-css on react, and can replicate with this code:
In situations where the container is wider than the parent and scrolling is enabled, I cannot select the input - it's like the click is ignored. If the container doesn't overflow, and therefore there is no scrolling, it works as expected. The input's onClick event does fire however, and this hacky workaround fixes the issue:
So it seems something is causing the input to un-focus after the ScrollContainer is clicked.
Cheers
The text was updated successfully, but these errors were encountered: