Skip to content

Commit

Permalink
fix: can't input auto-complete
Browse files Browse the repository at this point in the history
  • Loading branch information
tiensonqin committed Jun 16, 2022
1 parent bf75529 commit 87af4cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/frontend/commands.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@
(let [selected? (not (string/blank? selected))
input (gdom/getElement id)
edit-content (gobj/get input "value")]
(when-not (string/blank? edit-content)
(when edit-content
(let [current-pos (cursor/pos input)
prefix (subs edit-content 0 current-pos)
postfix (if selected?
Expand Down

0 comments on commit 87af4cf

Please sign in to comment.