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

[Bug]: Unable to refresh tom select when underlying option state changed #859

Open
Seb33300 opened this issue Jan 10, 2025 · 0 comments
Open
Labels
bug Something isn't working

Comments

@Seb33300
Copy link

Bug description

If I modify the underlying select to enable/disable an option from the list, I am not able to replicate the change on tom select instance.

I used tom select API to refresh options like this:

select.tomselect.sync();
select.tomselect.refreshOptions();

Expected behavior

The tom select option list should be updated to reflect option state changes.

Steps to reproduce

  1. init tom select on a select with a disabled option
  2. change the disabled option state to enabled on the underlying select
  3. refresh tom select option
  4. tom select option is still disabled

Additional context

  • Tom select 2.4.1
@Seb33300 Seb33300 added the bug Something isn't working label Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant