Fork me on GitHub
#reagent
<
2016-04-07
>
gadfly36101:04:40

@fabrao: I think I found something that may work for you - using detachable false. Try updating the page function like this:

(defn page [ratom]
  [:div
   [modal]

   [:button
    {:on-click #(doto (js/$ ".ui.basic.modal")
                  (.modal #js {:detachable false})
                  (.modal "show"))}
    "Show Modal"]
   ])
I was looking at the second answer here: http://stackoverflow.com/questions/29063995/reactjs-wrap-semantic-ui-modal-using-portal-pattern

escherize01:04:36

I used a semantic-ui modal lately.

escherize01:04:50

I think there's a special class u can give it to keep it in the dom

escherize01:04:36

if you inclide the class: active in your modal, it won't get slid out from under you and you can control it via regent.

escherize01:04:54

i.e.:

(when @modal-open [:div.ui.active.modal ....])

fabrao13:04:35

@gadfly361: It worked as you said, thanks a lot Best regards,

mikethompson21:04:21

Does anyone have experience of react-router? If so, @stepugnetti is looking for help. He has created a nice repo showing the problem: https://github.com/stepugnetti/react-router-issue original ticket, containing further description is here: https://github.com/reagent-project/reagent/issues/227

grav22:04:54

What’s the status on Reagent 0.6.0? Is it working for people? simple_smile

naomarik23:04:24

@grav working for me