Skip to content

Expose overlay pointer events as public API so user can prevent backdrop from consuming clicks  #14062

@benelliott

Description

@benelliott

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:

(overlay.overlayRef as any)._togglePointerEvents(false);

Is there anything else we should know?

Somewhat related to #9320

Metadata

Metadata

Assignees

Labels

P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentfeatureThis issue represents a new feature or feature request rather than a bug or bug fix

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions