-
-
Notifications
You must be signed in to change notification settings - Fork 335
HTML entity encoding behavior in multiselect dropdown #1373
Copy link
Copy link
Closed
Labels
lang/javascriptAnything involving JavaScriptAnything involving JavaScripttype/bugAny issue which is a bug or PR which fixes a bugAny issue which is a bug or PR which fixes a bug
Milestone
Description
I’m experiencing an issue in Fomantic UI multiselect dropdowns version 2.8.4.
When I choose an item from the multiselect dropdown that contains characters such as & (ampersand) or ‘ (single quote), the hidden input value is encoded into a HTML character entity. However, if I select two items which both contain the special characters, in the hidden input value, the first item is encoded as HTML character entity (eg: &) and the second is unencoded. If I continue to select the third item without the special characters, both items are encoded into HTML entities.
Here is my codepen: https://codepen.io/moistyburger/pen/zYGjQBK
However, if I use semantic-ui version 2.4.1, it does not have such behavior.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
lang/javascriptAnything involving JavaScriptAnything involving JavaScripttype/bugAny issue which is a bug or PR which fixes a bugAny issue which is a bug or PR which fixes a bug