mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2024-12-14 18:35:21 +01:00
move click listener up
This commit is contained in:
parent
3722bd25d4
commit
3d5dc18d0c
@ -77,6 +77,11 @@ export class QuickReply {
|
||||
menu.show(evt);
|
||||
}
|
||||
});
|
||||
root.addEventListener('click', ()=>{
|
||||
if (this.message?.length > 0 && this.onExecute) {
|
||||
this.onExecute(this);
|
||||
}
|
||||
});
|
||||
const lbl = document.createElement('div'); {
|
||||
this.domLabel = lbl;
|
||||
lbl.classList.add('qr--button-label');
|
||||
@ -95,11 +100,6 @@ export class QuickReply {
|
||||
});
|
||||
root.append(expander);
|
||||
}
|
||||
root.addEventListener('click', ()=>{
|
||||
if (this.message?.length > 0 && this.onExecute) {
|
||||
this.onExecute(this);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
return this.dom;
|
||||
|
Loading…
Reference in New Issue
Block a user