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

FIX: prevents user-tips to interfere with widget #23066

Merged
merged 1 commit into from Aug 11, 2023

Conversation

jjaffeux
Copy link
Contributor

@jjaffeux jjaffeux commented Aug 10, 2023

Prior to this fix the user tip was rendered with panels and interfering with widget code. I suspect it was causing the widget node (revamped-hamburger-menu-wrapper) to not be removed, as a result clickOutside would be called two times, negating the effect of the click.

This fix is just rendering the tip in a different node, preventing the interference, it shouldn't impact behavior as the positioning is absolute.

Example of the problematic DOM, here the menu is closed, yet the node is still present with [data-click-outside]:

Screenshot 2023-08-10 at 23 29 46

Prior to this fix the user tip was rendered with panels and interfering with widget code. I suspect it was causing the widget node  (revamped-hamburger-menu-wrapper) to not be removed, as a result clickOutside would be called two times, negating the effect of the click.

This fix is just rendering the tip in a different node, preventing the interference, it shouldn't impact behavior as the positioning is absolute.
@jjaffeux jjaffeux merged commit 31626ce into discourse:main Aug 11, 2023
13 checks passed
@jjaffeux jjaffeux deleted the user-tips branch August 11, 2023 08:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants