-
Notifications
You must be signed in to change notification settings - Fork 6.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug(cdk/overlay): panel 'pointer-events' can not be overridden by panelClass #21656
Comments
If we agree this is an issue/valid-request I think the fix would be pretty trivial and I can do it. I think simply changing |
We set `pointer-events: auto` on the overlay when it is attached and then `none` while it's detaching which ends up overriding any other styles the user might have. These changes reset to `''` instead. Fixes angular#21656.
We set `pointer-events: auto` on the overlay when it is attached and then `none` while it's detaching which ends up overriding any other styles the user might have. These changes reset to `''` instead. Fixes #21656.
We set `pointer-events: auto` on the overlay when it is attached and then `none` while it's detaching which ends up overriding any other styles the user might have. These changes reset to `''` instead. Fixes angular#21656.
We set `pointer-events: auto` on the overlay when it is attached and then `none` while it's detaching which ends up overriding any other styles the user might have. These changes reset to `''` instead. Fixes angular#21656.
We set `pointer-events: auto` on the overlay when it is attached and then `none` while it's detaching which ends up overriding any other styles the user might have. These changes reset to `''` instead. Fixes angular#21656.
We set `pointer-events: auto` on the overlay when it is attached and then `none` while it's detaching which ends up overriding any other styles the user might have. These changes reset to `''` instead. Fixes angular#21656.
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Expected Behavior
I'd like to be able to completely disable
pointer-events
on an overlay. The.cdk-overlay-pane
is the only element that doesn't havepointer-events: none
, and there is thepanelClass
feature to add more styling to that so I'd assume that's the way to do it.Actual Behavior
_togglePointerEvents overrides
pointer-events
in thestyle
attribute 100% of the time. The.cdk-overlay-pane
already setspointer-events: auto
so I think_togglePointerEvents
can setpointer-events: none
when necessary but otherwise drop the inline one and let the css do whatever it wants?Environment
The text was updated successfully, but these errors were encountered: