Skip to content

"pointer-events-none" not working as expected ? #16717

Answered by wongjn
vis-prime asked this question in Help
Discussion options

You must be logged in to vote

Are you clicking only on the search icons? If you look in your screenshot, the text above the example states:

Click the search icons to see the expected behavior

The example is demonstrating the point-events-* classes on the search icon wrapper <div> elements, not the whole <div>. Thus the left side should do nothing when clicking on the search icon, while the right side should allow you to click-through the search icon to the input element. The example demonstrates that with pointer-events-auto, the search icon element intercepts the click, whereas with pointer-events-none, the search icon no longer intercepts the click. This then means the <input> element underneath gets the click eve…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@vis-prime
Comment options

Answer selected by vis-prime
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants