mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-09-09 08:03:50 +00:00
use clickoutside for note deselect
This commit is contained in:
@@ -755,7 +755,6 @@
|
||||
if (selectionManager.mode === 'normal') {
|
||||
selectionManager.clearSelection()
|
||||
}
|
||||
noteManager.clearNoteSelection()
|
||||
}}
|
||||
onpanecontextmenu={({ event }) => {
|
||||
paneContextMenu?.onPaneContextMenu(event)
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
import { Button } from '$lib/components/common'
|
||||
import { getNoteEditorContext } from '../../noteEditor.svelte'
|
||||
import { getGraphContext } from '../../graphContext'
|
||||
import { clickOutside } from '$lib/utils'
|
||||
|
||||
interface Props {
|
||||
data: {
|
||||
@@ -171,6 +172,11 @@
|
||||
role="button"
|
||||
tabindex={editMode ? -1 : 0}
|
||||
ondblclick={handleDoubleClick}
|
||||
use:clickOutside={{
|
||||
onClickOutside: () => {
|
||||
noteManager?.clearNoteSelection()
|
||||
}
|
||||
}}
|
||||
>
|
||||
<!-- Action buttons - only show in edit mode -->
|
||||
{#if isEditModeAvailable}
|
||||
|
||||
Reference in New Issue
Block a user