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

Ensure data.id is a string in SelectAdapter unselect #5398

Closed

Conversation

jbrowning
Copy link

This pull request includes a

  • Bug fix
  • New feature
  • Translation

The following changes were made

  • We ensure that data.id is a string in SelectAdapter.prototype.unselect. This fixes an issue where currentData[d].id (previously normalized as a string) was not properly compared to an ajax-backed data.id (often an integer from a JSON result).

Fixes #4845.

@stale
Copy link

stale bot commented Mar 13, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the status: stale label Mar 13, 2019
@stale stale bot closed this Mar 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Select2 triggers unselect event but does not unselect the option
1 participant