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

Relay event arg to onClickOutside callback #758

Conversation

TwilightCoder
Copy link
Contributor

@TwilightCoder TwilightCoder commented Dec 18, 2022

This allows the callback to filter target elements.

Sample issue scenario

Given:

  • A custom trigger callback that opens the picker popup.
  • And then the onClickOutside callback set to close the popup on outside clicks.

Issue: Without excluding the trigger element target in the onClickOutside callback, the popup is opened by the first callback and then closed instantly by the second callback, as it is registered as an outside click.

@EtienneLem EtienneLem merged commit 1798bb0 into missive:main Dec 19, 2022
@EtienneLem
Copy link
Member

Thanks! 🤘🏼

@TwilightCoder TwilightCoder deleted the twilightcoder/enhancement/outside-click-callback-arg branch December 19, 2022 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants