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