enhance(ux): pointer down to trigger the hide context menu and block selections

experiment/tanstack-table
charlie 2024-05-17 13:21:53 +08:00
parent 45150c0f05
commit 5b0051adef
1 changed files with 1 additions and 1 deletions

View File

@ -878,7 +878,7 @@
rum/reactive
(mixins/event-mixin
(fn [state]
(mixins/listen state js/window "click" hide-context-menu-and-clear-selection)
(mixins/listen state js/window "pointerdown" hide-context-menu-and-clear-selection)
(mixins/listen state js/window "keydown"
(fn [e]
(when (= 27 (.-keyCode e))