vue-select icon indicating copy to clipboard operation
vue-select copied to clipboard

Modal window closes, when I select item outside of bootstrap modal with vue select

Open dlenskyi opened this issue 5 years ago • 10 comments

Kapture 2020-07-30 at 20 56 39

Here you can see, that if I try to select value which is outside of modal window, modal closes then. To Reproduce Steps to reproduce the behavior: You need to have select options outside of modal window

Expected behavior Bootstrap doesn't need to close after selection

Please help me how to avoid this??

Desktop:

  • OS: MacOS
  • Browser Safari

dlenskyi avatar Jul 30 '20 18:07 dlenskyi

Same here on Chrome on Linux :/

MonsJovis avatar Aug 04 '20 10:08 MonsJovis

Hi ! It's seems appear since version 3.10.7
So i've install version 3.10.6 : npm i [email protected]

Cryde avatar Aug 28 '20 10:08 Cryde

same here on version 3.10.7

bagaskarala avatar Sep 08 '20 03:09 bagaskarala

The most simple solution i can see is to add no-close-on-backdrop property to your b-modal. In that case you are going to need a cancel button or close "X" button on top right corner to close modal. That worked for me.

ZGiovas avatar Nov 02 '20 12:11 ZGiovas

Disabling transition worked for me transition="" https://vue-select.org/guide/css.html#dropdown-transition

SamuelOcampo avatar Dec 24 '20 20:12 SamuelOcampo

Disabling transition worked for me transition="" https://vue-select.org/guide/css.html#dropdown-transition

FredyKimaro avatar Mar 26 '21 08:03 FredyKimaro

@ZGiovas method solved the issue for me. I added no-close-on-backdrop

jaymoh avatar Aug 05 '21 11:08 jaymoh

Same here. Downgrading to 3.10.6 worked for me.

BMasquio avatar Aug 18 '21 12:08 BMasquio

Any reason why disabling the transitions fixes this? I'm not using bootstrap but experiencing the same issue with my own modal. Preferably I'd like to have transitions.

s7m4b4 avatar Aug 20 '21 04:08 s7m4b4

Related, broader issue: #1272

I'll use the empty transition solution for now but this needs fixing.

Mach12 avatar Aug 23 '21 13:08 Mach12