Skip to content
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

Better disableClickPropagation #7751

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

johnd0e
Copy link
Collaborator

@johnd0e johnd0e commented Nov 7, 2021

Now disableClickPropagation does not prevent events on elements' feature

Fix #7750

disableClickPropagation does not prevent click on element's feature.
@johnd0e johnd0e force-pushed the betterDisableClickPropagation branch 2 times, most recently from d1e3dfe to 488b3bd Compare November 8, 2021 09:37
- Leave DomEvent.disableClickPropagation as is
  (but w/o of legacy click tricks)
- Introduce special method Evented.disableClickPropagation

Note: Control.* should use DomEvent.disableClickPropagation
@johnd0e johnd0e force-pushed the betterDisableClickPropagation branch from 488b3bd to 366698b Compare November 8, 2021 09:55
@johnd0e
Copy link
Collaborator Author

johnd0e commented Nov 8, 2021

Alternative solution in last commit (actually I'm not sure that it is better).

  • Leave DomEvent.disableClickPropagation as is
    (but w/o of legacy click tricks)
  • Introduce special method Evented.disableClickPropagation

Note: Control.* should use DomEvent.disableClickPropagation

@Falke-Design Falke-Design added this to the 1.8 milestone Nov 26, 2021
@Falke-Design Falke-Design removed this from the 1.8.0 milestone Feb 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

disableClickPropagation should not prevent events on element itself (and child elements)
2 participants