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

optgroup with single select

Open brokieb opened this issue 4 years ago • 5 comments

Hey, can't select only one option when optgroup is enabled: https://codepen.io/damian-woniak/pen/PomvYeN

brokieb avatar Aug 24 '21 12:08 brokieb

Hello in function addOptgroup -> addOptgroup.call(this, i, selectOptions); Previously was addOptgroup.call(this, startIndexi, selectOptions);

Work for me!

ldgonzalez94 avatar Aug 29 '21 18:08 ldgonzalez94

Hello in function addOptgroup -> addOptgroup.call(this, i, selectOptions); Previously was addOptgroup.call(this, startIndexi, selectOptions);

Work for me!

Nice workaround! Thanks. Hope this bug will be fixed soon

Rezyan avatar Sep 02 '21 11:09 Rezyan

Hello in function addOptgroup -> addOptgroup.call(this, i, selectOptions); Previously was addOptgroup.call(this, startIndexi, selectOptions);

Work for me!

Sorry but this workaround isn't working for me. Any tips? I've followed everything exactly.

wastzzz avatar Sep 12 '21 17:09 wastzzz

Hello in function addOptgroup -> addOptgroup.call(this, i, selectOptions); Previously was addOptgroup.call(this, startIndexi, selectOptions); Work for me!

Sorry but this workaround isn't working for me. Any tips? I've followed everything exactly.

@wastzzz It probably depends on your setup but you may also need to apply the patch to dist/js/bootstrap-select.min.js, if that's what you are using. In my case, I am using webpack which does its own minification so I don't need bootstrap-select.min.js.

If you are using dist/js/bootstrap-select.js then you can install my git version, I did yarn add technical-team/bootstrap-select#152c93764e78eb52a5d20ff88ad5194bd766b061

Maybe would be easier if there would just be 1.14.0-beta-3 release of this library, given that some pretty basic functionality is broken :)

asztal avatar Sep 12 '21 20:09 asztal

Hi Lee, thanks so much for your reply. Nope, I am not using the minified version. But I'll try what you are telling me.

Yeah I agree it would be better to wait for next release, but I’ve migrated everything to bs5 and I need to find a temporary fix for this somehow.

Best Massimo

On 12 Sep 2021, at 22:34, Lee Houghton @.***> wrote:

 Hello in function addOptgroup -> addOptgroup.call(this, i, selectOptions); Previously was addOptgroup.call(this, startIndexi, selectOptions); Work for me!

Sorry but this workaround isn't working for me. Any tips? I've followed everything exactly.

@wastzzz It probably depends on your setup but you may also need to apply the patch to dist/js/bootstrap-select.min.js, if that's what you are using. In my case, I am using webpack which does its own minification so I don't need bootstrap-select.min.js.

If you are using dist/js/bootstrap-select.js then you can install my git version, I did yarn add technical-team/bootstrap-select#152c93764e78eb52a5d20ff88ad5194bd766b061

Maybe would be easier if there would just be 1.14.0-beta-3 release of this library, given that some pretty basic functionality is broken :)

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

wastzzz avatar Sep 13 '21 06:09 wastzzz