[Bug]-[100]:MultiSelectTree and TreeSelect unable to select an option whose value is with parentheses #12609
Open
Description
Is there an existing issue for this?
- I have searched the existing issues
Description
When I use a MultiSelectTreeWidget with some option whose value is with a parentheses character, the option value would not show in selectedOptionValues, even the UI is selected as usual. After test with another similar widgets, I found only MultiSelectTreeWidget got such bug. And not only parentheses, curly and square brackets, are also went wrong. I think it may cause by the regular expression in getDerivedPropertiesMap function.
see also:
Steps To Reproduce
- Add a MultiSelectTreeWidget with Options as following: [ { "label": "abc", "value": "abc (abc)" }]
- Add a Text Widget with Text to show the selected values: {{MyTreeWidget.selectedOptionValues}}
- Select the option label "abc" and see the text widget shows.
Public Sample App
No response
Version
Cloud v1.6.17-SNAPSHOT