Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(dropdown): multiselect values encoding, removing label
When a multiple dropdown (non select) was used and selected data has characters like & or ' set, there were stored entity encoded (returning into false positives when comparing later to their original values). Even worse this was only done for all previous selected values, the current to be added value was kept raw already. dropdowns using select tags do not store the selected data in an input field, so the issue does not happen there. Original data should be kept, as it is already the case for dropdown made out of select tags. Also SUI does not do this. Additionally this PR fixes a situation when a value has double quotes which led to a js error when trying to remove that label . Double quotes in select menus are now also kept encoded instead of being removed to have the same behavior for select/non select dropdowns Double quotes are always encoded (when text needs to be kept) or removed (everywhere else where they dont make sense like classnames) for security reasons, because all internal templates use them for HTML generation
- Loading branch information