On Friday, July 11, 2014 7:41:49 PM UTC-6, Roberto Oliveros wrote:
> This what I have:
>
> (defn view [cursor owner]
> (reify
> om/IDidMount
> (did-mount [_]
> (-> (js/$ ".dropdown-toggle")
> (.dropdown)))
>
> om/IRender
> (render [_]
> (dom/div #js {:className "dropdown"}
> (dom/button #js {:className "btn btn-default dropdown-toggle"
> :type "button"
> :id "dropdownMenu1"} "Dropdown" (dom/span #js
> {:className "caret"}))
> (dom/ul #js {:className "dropdown-menu"
> :role "menu"
> :ariaLabelledby "dropdownMenu1"}
> (dom/li #js {:role "presentation"}
> (dom/a #js {:role "menuitem"
> :tabIndex "-1"
> :href "#"} "Action"))
> (dom/li #js {:role "presentation"}
> (dom/a #js {:role "menuitem"
> :tabIndex "-1"
> :href "#"} "Another action")))))))
>
>
> The problem is that once the dropdown is opened, it does not hide anymore as
> it should be when one clicks on it or somewhere else. Also keystrokes don't
> work. I believe a missing something important here, what could it be? I'm
> using bootstrap 3.1.1 and jquery 1.11.0.
>
> Thanks.
Found it...
http://stackoverflow.com/a/24722505/2202143
--
Note that posts from new members are moderated - please be patient with your
first post.
---
You received this message because you are subscribed to the Google Groups
"ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/clojurescript.