diff --git a/src/uxbox/util/dom.cljs b/src/uxbox/util/dom.cljs index 6d86330a6..846d2becf 100644 --- a/src/uxbox/util/dom.cljs +++ b/src/uxbox/util/dom.cljs @@ -16,11 +16,13 @@ (defn stop-propagation [e] - (.stopPropagation e)) + (when e + (.stopPropagation e))) (defn prevent-default [e] - (.preventDefault e)) + (when e + (.preventDefault e))) (defn event->inner-text [e]