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
benelliott opened this issue
Nov 9, 2018
· 5 comments
Assignees
Labels
featureThis issue represents a new feature or feature request rather than a bug or bug fixP3An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
It would be great if the user could choose to disable pointer events on an overlay backdrop so that elements underneath the overlay can still be interacted with. In my use case, I am using an overlay to create a custom read-only tooltip-like readout, so the content of the overlay itself is not interactive, but the content underneath the backdrop is.
What is the current behavior?
I am currently disabling pointer events by using a private API:
vivian-hu-zz
added
feature
This issue represents a new feature or feature request rather than a bug or bug fix
P3
An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
labels
Nov 9, 2018
The OverlayRef already exposes the overlayElement and backdropElement. You should be able to use them to style the elements. Also FWIW, disabling pointer events on the backdrop would basically be the same as removing the backdrop altogether.
@crisbeto Sorry - when I wrote this I forgot what I was actually trying to do. I want to disable pointer events on an overlay without a backdrop.
Like you said, I could achieve this by doing overlay.overlayRef.overlayElement.style.pointerEvents = 'none' but it seems a bit dirty considering there is already the _togglePointerEvents method on the OverlayRef?
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
featureThis issue represents a new feature or feature request rather than a bug or bug fixP3An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
Bug, feature request, or proposal:
Proposal
What is the expected behavior?
It would be great if the user could choose to disable pointer events on an overlay backdrop so that elements underneath the overlay can still be interacted with. In my use case, I am using an overlay to create a custom read-only tooltip-like readout, so the content of the overlay itself is not interactive, but the content underneath the backdrop is.
What is the current behavior?
I am currently disabling pointer events by using a private API:
Is there anything else we should know?
Somewhat related to #9320
The text was updated successfully, but these errors were encountered: