davidstutz / bootstrap-multiselect

JQuery multiselect plugin based on Twitter Bootstrap.
https://davidstutz.github.io/bootstrap-multiselect/
Other
3.67k stars 1.98k forks source link

Menu dropdown no longer works after display a modal dialog #662

Open mikeerickson opened 8 years ago

mikeerickson commented 8 years ago

We have a standard bootstrap,.ui modal dialog displayed, after displaying dialog all the mutliselect menu buttons no long show dropdown, button click just flash the button as a normal click would.

I have tried all the various rebuild options

$(',multiSelect').multiselect('refresh'); $(',multiSelect').multiselect('rebuild'); $(',multiSelect').multiselect('destroy'); and recreate

Any suggestions? I am stumped on this one.

Aidurber commented 8 years ago

We experienced something similar last week. The issue was having a non-knockout multiselect inside Knockout bindings, inside a Bootstrap 3 modal.

davidstutz commented 8 years ago

I will try to create an example reproducing the issue.

navasiloy commented 8 years ago

this issue is related to bootstrap dropdown itself here is an workaround: after modal window gets initialized running this code $('.dropdown-toggle').dropdown(); fix the issue

davidstutz commented 8 years ago

Will add the workaround to the documentation.