-
-
Notifications
You must be signed in to change notification settings - Fork 135
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
BUGFIX: Select box shows invalid value #3745
Conversation
Old description from Niclas
Currently the selectbox shows the "choose" placeholder, if an invalid option is selected. This is misleading, cause a value is still selected and therefore can be used. If the current selected value is not a valid option, the placeholder changes to "invalid value" without the value being updated. Fixes #3520 Hi Niclas ;) i adjusted your pr a bit to what we discussed at the sprint i guess... following todos are still todo:
|
I added some test for
|
e2e failure is currently related:
|
I dont understand the test completely, how can there be an empty string in an integer nodetype property???
Line 31 in 2be77a4
i guess empty string means unset??? we should check on that but ill adjust the "create magic select box option" logic to ignore empty string |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works on my machine, thx!
Even the createNew thing which is nowhere documented I think.
I also have to add those options to my NodeTypes schema.
The bool filter here is broken. we must keep the real index see daggableValues[dragIndex];: neos#3520 (comment)
Hey @mhsdesign I think fixed the CI :). Only a snapshot update for selectbox was needed. |
replaces the initial solution #3526 with a refactored approach applied from outside the select-box to reduce the logic there and add translation for the label.
Resolves: #3520
What I did
For the first and second case (mentioned in #3520) we introduced a warning icon, a proper label and additionally allow to reset the value like:
And for the multi select box it will look like this, ensuring the sorting will still work
Bildschirmaufnahme.2023-06-12.um.23.23.53.mov
For a (slow) datasource it looks like:
Bildschirmaufnahme.2023-07-10.um.15.04.19.mov
and for multiple: true it looks like:
Bildschirmaufnahme.2023-07-11.um.09.35.15.mov
Related discussion #3526 (comment)