-
Notifications
You must be signed in to change notification settings - Fork 106
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
Error in Dropdown with allow Multiple in recent versions #1738
Comments
reproduced, see FUI issue fomantic/Fomantic-UI#2246 docs https://fomantic-ui.com/modules/dropdown.html#/security |
add a test and test if problem is solved with #1866 |
Problem seems to persist after upgrade to Fomantic UI 2.9.0-beta.320- the html special chars are stored returned from the control, whereas it should return the non-HTML-encoded characters like "<" or ">" rather than ">" or "<" |
Here is more background to the still remaining issue:
If you save this, atk4/data correctly stored it as
What is interesting is that if you have this field's content (two times the same entry):
|
@mvorisek This seems to be an issue in the most recent develop branch, as an older develop commit does not show this issue. Very strange how the template is rendered as the field's content is considered as opening tag and a closing tag is generated. |
I put a lot of time to this already and even have a draft branch for it. FUI 2.9.0 fixed some problems, but not all, we need to still update the render in atk4/ui. The main time consuming problem is there are 3 Dropdown controls, Dropdown, Lookup and Lookup in vue. And all uses different rendering, different data format... We should unify this first - related issue #1020 |
Solved by |
Lookup/Dropdown use completely different source data format, it is not that easy |
For me this issue here is resolved by preserverHTML = false, everything works as it should with it. |
Steps to reproduce:
You can see this already on rendering of the form, that the hidden <input...> for that dropdown contains the wrong comma-separated two values with original string and htmlencoded string erroneously.
Bad workaround: you submit already the htmlspecialchars('Username user@emaildomain.de') as a default, then it would not happen. Probably an issue with typecasting.
Expected result:
The non-html-encoded string is received on POST/saved into the database, rather that the double-entry list with one htmldecoded, one encoded element string.
The text was updated successfully, but these errors were encountered: