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

How to disable the "space" key select me a choice?

Open JamesChe91 opened this issue 10 years ago • 4 comments

Sorry for the english, but I need disable this, because when a selectpicker do a postback, it's annoying that when searching for an option and I press space then the item is selected

JamesChe91 avatar Dec 30 '15 14:12 JamesChe91

I've the same problem here. Ajax is working gracefully with selectpicker. But when the user is searching for something and press the space key, selectpicker automatically select an item and close the list and searchbox. Anyone know a fix for it?

joseantonnio avatar Jun 28 '16 12:06 joseantonnio

What I did was look for this $ (Document) .data ('spaceSelect'), true); and change it to $ (Document) .data ('spaceSelect'), false);

In the file .min not work for me, then what I did was modify the other and use any tool to change it to .min

JamesChe91 avatar Jun 28 '16 21:06 JamesChe91

Well, this really works! Thanks. This fix is already in bootstrap-select.js and bootstrap-select.min.js, but don't work with min.js. Awful...

joseantonnio avatar Jun 29 '16 11:06 joseantonnio

just use a tool like this http://jscompress.com/ with the bootstrap-select.js and this will generate the .min.js file

JamesChe91 avatar Jun 29 '16 14:06 JamesChe91