mirror of
https://github.com/discourse/discourse-ai.git
synced 2025-06-24 16:42:15 +00:00
DEV: adds pointerup event to our select text helper (#1429)
This is needed for https://github.com/discourse/discourse/pull/33143 Ideally we should move all these helpers to core, or improve the ones in core.
This commit is contained in:
parent
ed311de937
commit
b5a2ee31ab
@ -78,6 +78,8 @@ acceptance("AI Helper - Post Helper Menu", function (needs) {
|
||||
const selection = window.getSelection();
|
||||
selection.removeAllRanges();
|
||||
selection.addRange(range);
|
||||
const event = new PointerEvent("pointerup");
|
||||
document.dispatchEvent(event);
|
||||
await settled();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user