fix: arrow up/down closes property autocomplete

This commit is contained in:
Tienson Qin
2022-08-23 09:39:24 +08:00
parent 85aeba99ab
commit 024fad1219

View File

@@ -2662,7 +2662,7 @@
(surround-by? input "#" :end)
(= key "#"))]
(cond
(and (contains? #{"ArrowLeft" "ArrowRight" "ArrowUp" "ArrowDown"} key)
(and (contains? #{"ArrowLeft" "ArrowRight"} key)
(contains? #{:property-search :property-value-search} (state/get-editor-action)))
(state/clear-editor-action!)