Просмотр исходного кода

fix: can't input auto-complete

Tienson Qin 3 лет назад
Родитель
Сommit
87af4cf0d5
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/main/frontend/commands.cljs

+ 1 - 1
src/main/frontend/commands.cljs

@@ -406,7 +406,7 @@
   (let [selected? (not (string/blank? selected))
   (let [selected? (not (string/blank? selected))
         input (gdom/getElement id)
         input (gdom/getElement id)
         edit-content (gobj/get input "value")]
         edit-content (gobj/get input "value")]
-    (when-not (string/blank? edit-content)
+    (when edit-content
       (let [current-pos (cursor/pos input)
       (let [current-pos (cursor/pos input)
             prefix (subs edit-content 0 current-pos)
             prefix (subs edit-content 0 current-pos)
             postfix (if selected?
             postfix (if selected?