Skip to content
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

classNames JS object #40

Closed
zslabs opened this issue Sep 15, 2016 · 4 comments
Closed

classNames JS object #40

zslabs opened this issue Sep 15, 2016 · 4 comments
Labels

Comments

@zslabs
Copy link
Contributor

zslabs commented Sep 15, 2016

Hey!
When trying to customize the classNames object during initialization and only impact a single value, it looks like Choices was blowing up a little and not working as expected until I pasted all the default values and customized one of them. Is the intended behavior to need to dupe all the defaults in this area? Thanks!

@jshjohnson
Copy link
Collaborator

Interesting - do you mind providing your Choices config please? Thanks

@zslabs
Copy link
Contributor Author

zslabs commented Sep 15, 2016

Sure, I had the following:

const choices = new Choices('.ChoicesSelect select', {
  removeItemButton: true,
  classNames: {
    button: 'Button--reset choices__button'
  }
});

@jshjohnson
Copy link
Collaborator

This should now be resolved in version 2.0.3! Thanks for highlighting this.

@zslabs
Copy link
Contributor Author

zslabs commented Sep 15, 2016

Awesome, thanks for the quick-fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants