Fork me on GitHub
#re-frame
<
2015-08-08
>
escherize18:08:06

I'm making a re-com modal. What's the proper way to make a click on the backdrop make the modal disappear? I tried using

[recom/modal-panel
       :attr {:on-click #(dispatch [:hide-calculator-modal])
              :on-touch-start #(dispatch [:hide-calculator-modal])}
       :child [:div [the-actual-content nothing interesting here]]]
but a click/touch-start on the actual content closes the panel.