Restore split menu button fix (d96afa44, regression b2ad17d6)

This commit is contained in:
Adomas Venčkauskas 2025-06-12 14:28:08 +03:00
parent 623218028c
commit 5794d8a954

View file

@ -58,6 +58,20 @@
connectedCallback() {
this.append(this.contentFragment);
// Prevent DOM-attached mouse handlers from running in the dropmarker area
for (const eventType of ['mousedown', 'mouseup', 'click']) {
const handler = this.getAttribute('on' + eventType);
if (!handler) {
continue;
}
this['on' + eventType] = null;
this.addEventListener(eventType, (event) => {
if (!this._isEventInDropmarkerBox(event)) {
eval(handler).bind(this);
}
});
}
}
disconnectedCallback() {