Skip to content

disableClickPropagation should not prevent events on element itself (and child elements) #7750

Open
@johnd0e

Description

Is your feature request related to a problem? Please describe.
By definition disableClickPropagation should stop propagation to parent elements.
But currently if we apply disableClickPropagation to some elements - we miss events of any feature bound to this element.
I suppose that is non-intuitive and limiting.

Describe the solution you'd like
It is possible to implement more intuitive behavior - only child elements' events should be ignored.
I propose to place related code in _findEventTargets (instead of _isClickDisabled)

Additional context
Proof of concept - interactive Popup (for click only).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions