-
Notifications
You must be signed in to change notification settings - Fork 516
New issue
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
HitsPerPageSelector root css class being applied twice #2397
Comments
Hi @Corys8646 thanks for opening this issue. Ok indeed. On it! |
bobylito
pushed a commit
that referenced
this issue
Oct 2, 2017
The implementation of the React `selector` was applying the root css classname that is already applied by the headerfooter. In order to prevent regressions and let user customize the <select>, this patch adds a new key to customize cssClasses in Selector bases widgets, and this new key has the root value to avoid breaking the current implementations. Fix #2396 #2397
bobylito
added a commit
that referenced
this issue
Oct 3, 2017
* fix(selector): root classname is applied twice The implementation of the React `selector` was applying the root css classname that is already applied by the headerfooter. In order to prevent regressions and let user customize the <select>, this patch adds a new key to customize cssClasses in Selector bases widgets, and this new key has the root value to avoid breaking the current implementations. Fix #2396 #2397 * chore(test): update snapshot * chore(functional-tests): add form-control using select The new cssClasses key so that we check that all 3 can have custom css classes. Interestingly the key was used but not implemented already :/ * chore(test): update test to validate the usage of the new key
This should have been fixed in the 2.2 release :) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Apologies if this is intended behavior, but the docs make me believe this is possibly a bug.
Using V2 of Instantsearch and adding a HitsPerPage selector, also adding a css class to the root cssClasses Object.
Problem is, the class is being added to the
<select>
item as well as the parent div.Trying to add a bootstrap form-control to the select element.
I've got a fiddle here: https://jsfiddle.net/Corys8646/8mhxqayf/1/
The text was updated successfully, but these errors were encountered: