Browse Source

fix: shortcuts

Tienson Qin 4 years ago
parent
commit
ce5a34f14e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/main/frontend/modules/shortcut/core.cljs

+ 1 - 1
src/main/frontend/modules/shortcut/core.cljs

@@ -130,7 +130,7 @@
 
    :did-remount (fn [old-state new-state]
                   (uninstall-shortcut! handler-id)
-                  (install-shortcut! handler-id {:state new-state})
+                  (js/setTimeout #(install-shortcut! handler-id {:state new-state}) 20)
                   new-state)
    :will-unmount
    (fn [state]