Skip to main content
Question

How to disable pointer events on hidden objects

  • February 5, 2025
  • 0 replies
  • 46 views

Mark Kanning

How do you disable the pointer events for elements (buttons, links, inputs, etc.) that are being obscured by modals, dropdowns, or anything else? The giant gray block shown below is the overlay container for a future megamenu, but the underlying, clickable elements are obviously still available to the mouse. That’s not ideal.

A dropdown exposed by clicking on a hidden button...which isn’t good.
This topic has been closed for replies.