mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2024-12-15 18:59:07 +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);
|
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;
|
||||||
|
Loading…
Reference in New Issue
Block a user