ember-one-way-controls
ember-one-way-controls copied to clipboard
one-way-select with prompt option auto-selects first element, so you never see the prompt
This example with "prompt=..." https://github.com/DockYard/ember-one-way-controls/blob/master/docs/one-way-select.md#adding-a-blank-or-prompt-option
auto-selects the first option from start. So the prompt never shows up.
You can use promptIsSelectable=true to work around this issue. But then the user can select the prompt again after he already made a choice. So you also need to validate for presence.
Hi @RobIsHere, i tried to reproduce your issue but failed - please see this twiddle!
I have this error again in a new app that's on current release versions all over.
{{one-way-select fileChangeSet.customGalleryPicture options=pictureFiles prompt="Please select one:" optionValuePath="id" optionLabelPath="filename" update=(action (mut fileChangeSet.customGalleryPicture))}}
with fileChangeSet beeing an ember-changeset object based on an ember-data model.