-
Notifications
You must be signed in to change notification settings - Fork 107
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
Form Dropdowns do not show ... (empty selection) once something is selected #418
Comments
Here is fix for that which I use in one project for quite some time:
|
Shouldn't it be \atk4\ui\FormField\Dropdown instead of Form_Field_Dropdown ? |
It's for smbo project and extends older toolkit (amodules3) Form_Field_Dropdown, but with some modifications this trick should work on new ui field too. |
And this is for multiple value select dropdown.
No need for workaround hacks in this case. |
Had a quick look into it, in the HTML code the empty selection is always there, so its definitely on the JS side. forceSelection option seems to be the one. will continue later. |
Has nothing to do with forceSelection :) Here is the according sematic UI issue: There seems to be a proper solution, lets hope it gets into the next release. |
Hmmm... I don't think Semantic will fix anything. More that 2 years have passed and still no official fix for this. |
Try this to see if this work for you.
Then you can use this like:
If this work then we can add a way to pass options to regular Dropdown input. When I use this, then the empty option become available after selecting a value. |
If a Form is associated with a model, it displays hasOne References as Dropdown.
When no value for this dropdown is set, it shows an empty selection (... placeholder).
As soon as a value is selected, this option disappears. So its no possible to un-select this hasOne Reference any more.
The ... option should only disappear when the field is set to
required = true
Empty selection available
![empty_selection_there](https://user-images.githubusercontent.com/33204878/38039530-b7fdf2ce-32ad-11e8-8dd3-196057c8cf9a.png)
And gone after something was selected
![empty_selection_gone](https://user-images.githubusercontent.com/33204878/38039553-c6afe9b2-32ad-11e8-9f16-b1333223f72e.png)
The text was updated successfully, but these errors were encountered: