mirror of
https://github.com/zotero/zotero.git
synced 2026-10-07 02:58:09 +00:00
parent
623218028c
commit
5794d8a954
1 changed files with 14 additions and 0 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue