mirror of
https://github.com/discourse/discourse.git
synced 2025-03-09 14:34:35 +00:00
FIX: prevents user-tips to interfere with widget (#23066)
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.
This commit is contained in:
parent
8053cb0c21
commit
31626ce85d
@ -163,7 +163,7 @@ createWidget("header-notifications", {
|
|||||||
reference: document
|
reference: document
|
||||||
.querySelector(".d-header .badge-notification")
|
.querySelector(".d-header .badge-notification")
|
||||||
?.parentElement?.querySelector(".avatar"),
|
?.parentElement?.querySelector(".avatar"),
|
||||||
appendTo: document.querySelector(".d-header .panel"),
|
appendTo: document.querySelector(".d-header"),
|
||||||
|
|
||||||
placement: "bottom-end",
|
placement: "bottom-end",
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user