We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6772e06 commit 90f7ec0Copy full SHA for 90f7ec0
1 file changed
resources/js/form/components/fields/editor/EditorMaybeFullscreenDialog.vue
@@ -9,8 +9,11 @@
9
const isFullscreen = defineModel<boolean>('fullscreen');
10
11
function onBackdropPointerDown(pointerDownEvent: PointerEvent) {
12
+ const downSelection = window.getSelection().toString();
13
window.addEventListener('pointerup', (pointerUpEvent: PointerEvent) => {
- if(pointerDownEvent.target === pointerUpEvent.target) {
14
+ if(pointerDownEvent.target === pointerUpEvent.target
15
+ && downSelection === window.getSelection().toString()
16
+ ) {
17
isFullscreen.value = false;
18
}
19
}, { once: true });
0 commit comments