ember-one-way-controls icon indicating copy to clipboard operation
ember-one-way-controls copied to clipboard

one-way-select with prompt option auto-selects first element, so you never see the prompt

Open RobIsHere opened this issue 8 years ago • 2 comments

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.

RobIsHere avatar May 14 '17 10:05 RobIsHere

Hi @RobIsHere, i tried to reproduce your issue but failed - please see this twiddle!

czosel avatar Jun 13 '17 06:06 czosel

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.

RobIsHere avatar Jul 05 '17 11:07 RobIsHere