yuche / vue-strap

Bootstrap components built with Vue.js
http://yuche.github.io/vue-strap/
MIT License
4.71k stars 935 forks source link

Select drop down causing modal closed #446

Open ghost opened 7 years ago

ghost commented 7 years ago

As shown in the following figure, when I select the drop-down value will trigger the click event and the pop-up window(modal) will closed。 qq 20170117111640

jenoforizs commented 7 years ago

Hello,

I got this similar behaviour - is there any ways to avoid closing of the modal window?

jenoforizs commented 7 years ago

Okay, found it: ':backdrop="false"' will stop closing the modal window if click happened out of the window

ghost commented 7 years ago

thank you very much,':backdrop="false" can solve this problem

2017-04-13 21:02 GMT+08:00 Jenő Fórizs notifications@github.com:

Okay, found it: ':backdrop="false"' will stop closing the modal window if click happened out of the window

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/yuche/vue-strap/issues/446#issuecomment-293888906, or mute the thread https://github.com/notifications/unsubscribe-auth/ADeeaMB83xz9mx-Dk8heG8nhSIpmb__1ks5rvhztgaJpZM4LlMGc .

danikristiansen commented 7 years ago

If you still want the backdrop and fix the dropdown/select issue you can modify the dropdown/select so that the @click is @click.prevent