We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I believe that this is a major usability problem if the select element is intended to be used more than once for example to add items to a list.
Steps to reproduce the problem using the first Live Search example on this page http://silviomoreto.github.io/bootstrap-select/examples/#live-search
You will see that the new search text is appended to the old search text. I believe the expected behavior would be to start a new search.
Clear the live search box on hidden.bs.select
hidden.bs.select
$('select.combobox').selectpicker({ liveSearch: true }).on('hidden.bs.select', function () { $(this).data('selectpicker').$searchbox.val('').trigger('propertychange'); });
I think that this needs to be the default behavior.
The text was updated successfully, but these errors were encountered:
Available in v1.13.0-alpha.
Sorry, something went wrong.
@caseyjhol
First of all, thanks for this package! :)
This is still somewhat an issue with bootstrap 4, on 1.13.9. I'm using a searchable multi-select.
1.13.9
I would expect the search field to be cleared after searching and selecting (via enter), so I can easily search and enter again.
I can easily add this behaviour though! Very similar to the above, however I'm clearing the search on changed.bs.select (rather than hidden.bs.select)
changed.bs.select
React code below:
import React from 'react'; class MyBootstrapSelect extends React.Component { componentDidMount() { window.jQuery('#bs-select').selectpicker() .on('changed.bs.select', function() { window.jQuery('#bs-select').data('selectpicker').$searchbox.val('').trigger('propertychange'); }); ; } render() { return ( <select className="selectpicker" id="bs-select" multiple data-live-search="true"> <option>Mosterd</option> <option>Ketchup</option> <option>Barbecue</option> <option>Mayonaise</option> <option>Samoerai</option> <option>Joppie</option> <option>Cocktail</option> </select> ) } }; export default MyBootstrapSelect;
No branches or pull requests
I believe that this is a major usability problem if the select element is intended to be used more than once for example to add items to a list.
Steps to reproduce the problem using the first Live Search example on this page
http://silviomoreto.github.io/bootstrap-select/examples/#live-search
You will see that the new search text is appended to the old search text. I believe the expected behavior would be to start a new search.
Workaround:
Clear the live search box on
hidden.bs.select
I think that this needs to be the default behavior.
The text was updated successfully, but these errors were encountered: