You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Maybe I'm missing something, but once dropdown has been enabled, there doesn't seem to be any way of destroying it.
Use case:
I'm retrofitting a website to be somewhat responsive. One of the requirements therein requires me to convert the navigation into something a bit more mobile-friendly. I've opted to create a collapsable menu, which I've got going, except that dropdown.js has been applied to the the navigation previously.
Since toggle is returning false (which I question whether that should be a e.preventDefault(), but that's a different discussion), There's no way for me to attach my own click event to the button. I could hook into the announced events from the plugin, but it would be a lot easier for me to simply disable the plugin when the mobile view is hit (I'm using enquire.js for this).
something like: $('#samplenav').dropdown('destroy') would be rather useful, especially since you can enable it at any time by simply applying $.dropdown() to an element.
The text was updated successfully, but these errors were encountered:
Maybe I'm missing something, but once dropdown has been enabled, there doesn't seem to be any way of destroying it.
Use case:
I'm retrofitting a website to be somewhat responsive. One of the requirements therein requires me to convert the navigation into something a bit more mobile-friendly. I've opted to create a collapsable menu, which I've got going, except that dropdown.js has been applied to the the navigation previously.
Since toggle is returning false (which I question whether that should be a
e.preventDefault()
, but that's a different discussion), There's no way for me to attach my own click event to the button. I could hook into the announced events from the plugin, but it would be a lot easier for me to simply disable the plugin when the mobile view is hit (I'm using enquire.js for this).something like:
$('#samplenav').dropdown('destroy')
would be rather useful, especially since you can enable it at any time by simply applying$.dropdown()
to an element.The text was updated successfully, but these errors were encountered: