From cc0e4af4bc0d22f0e59db6259b413d5ebd37a9a4 Mon Sep 17 00:00:00 2001 From: Florian Schroedl Date: Wed, 22 May 2024 16:37:19 +0200 Subject: [PATCH] Fix token value not being removed after submit --- .../src/app/main/ui/workspace/tokens/editable_select.cljs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/app/main/ui/workspace/tokens/editable_select.cljs b/frontend/src/app/main/ui/workspace/tokens/editable_select.cljs index bce793631..afbd5a2ee 100644 --- a/frontend/src/app/main/ui/workspace/tokens/editable_select.cljs +++ b/frontend/src/app/main/ui/workspace/tokens/editable_select.cljs @@ -153,9 +153,9 @@ (swap! state* assoc :refocus? true)) replace-token-with-value? (do (dom/prevent-default event) - (set-token-value! nil) (on-token-remove token) - (handle-change-input event)) + (handle-change-input event) + (set-token-value! nil)) :else (set-token-value! value))) is-open? (let [up? (kbd/up-arrow? event) down? (kbd/down-arrow? event)]