Skip to content
This repository was archived by the owner on Jul 22, 2025. It is now read-only.

Commit b5a2ee3

Browse files
authored
DEV: adds pointerup event to our select text helper (#1429)
This is needed for discourse/discourse#33143 Ideally we should move all these helpers to core, or improve the ones in core.
1 parent ed311de commit b5a2ee3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/javascripts/acceptance/post-helper-menu-test.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ acceptance("AI Helper - Post Helper Menu", function (needs) {
7878
const selection = window.getSelection();
7979
selection.removeAllRanges();
8080
selection.addRange(range);
81+
const event = new PointerEvent("pointerup");
82+
document.dispatchEvent(event);
8183
await settled();
8284
}
8385

0 commit comments

Comments
 (0)