Explorar el Código

Merge branch 'master' into fix-IOS-bottom-fixed-position

Charlie hace 5 años
padre
commit
7a20921ab6
Se han modificado 2 ficheros con 4 adiciones y 10 borrados
  1. 3 3
      resources/css/common.css
  2. 1 7
      src/main/frontend/mixins.cljs

+ 3 - 3
resources/css/common.css

@@ -1450,11 +1450,11 @@ a.tag:hover {
 
 /* Hide scrollbar for IE, Edge and Firefox */
 .hide-scrollbar {
-  -ms-overflow-style: none; /* IE and Edge */
-  scrollbar-width: none; /* Firefox */
+    -ms-overflow-style: none;  /* IE and Edge */
+    scrollbar-width: none !important;  /* Firefox */
 }
 
 /* Hide scrollbar for Chrome, Safari and Opera */
 .hide-scrollbar::-webkit-scrollbar {
-  display: none;
+    display: none;
 }

+ 1 - 7
src/main/frontend/mixins.cljs

@@ -61,12 +61,6 @@
                  ;; If the click target is outside of current node
                   (when-not (dom/contains dom-node (.. e -target))
                     (on-hide state e :click))))
-        (listen state dom-node "keydown"
-                (fn [e]
-                  (case (.-keyCode e)
-                   ;; Esc
-                    27 (on-hide state e :esc)
-                    nil)))
         (when visibilitychange?
           (listen state js/window "visibilitychange"
                   (fn [e]
@@ -135,7 +129,7 @@
      ;; :will-unmount (fn [state]
      ;;                 (detach state)
      ;;                 state)
-     })))
+})))
 
 (defn modal
   [k]