You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When an option in a multiple select dropdown contains a backslash in the value then once it has been selected it stays visible (as if it where selected) even when it has been removed. The "get value" behavior of the dropdown is correct but the UI doesn't remove the item from the selected field.
The text was updated successfully, but these errors were encountered:
The issue lies in the code '$removedLabel = $labels.filter('[data-value="' + value +'"]')', its line no. 7061 of semantic.js(version 2.2.6). '' seems to have special meaning because of which filter on labels returns an empty array. The following code fixes it: '$removedLabel = $labels.filter('[data-value="' + value.replace(//g, "\") +'"]')'. Appending an extra '' escapes the ''.
As I applied this solution on semantic.js located in dist folder and not on the src files, I will apply it and send a pull request for the fix for revision.
jlukic
changed the title
Backslash \ breaks multiple dropdown
[Dropdown] Backslash \ breaks multiple dropdown
Feb 20, 2017
JSfiddle: https://jsfiddle.net/agilejoshua/c24s8hdp/1/
When an option in a multiple select dropdown contains a backslash in the value then once it has been selected it stays visible (as if it where selected) even when it has been removed. The "get value" behavior of the dropdown is correct but the UI doesn't remove the item from the selected field.
The text was updated successfully, but these errors were encountered: