[bug] fixes #2064 red screen caused by carousel

This commit is contained in:
Eric Dvorsak 2017-10-10 10:44:17 +02:00 committed by Roman Volosovskyi
parent 49429c1c28
commit e8c8dbc098
1 changed files with 1 additions and 1 deletions

View File

@ -151,7 +151,7 @@
(if (not= page-width state-page-width)
(do
(reagent.core/set-state component {:pageWidth page-width})
(.setState component {:layout (.-layout (.-nativeEvent event))}))
(.setState component (clj->js {:layout (.-layout (.-nativeEvent event))})))
(scroll-to component page-position 0))))
(defn get-pages [component data children]