ember-cli-selectize icon indicating copy to clipboard operation
ember-cli-selectize copied to clipboard

[BUG] Setting a default value

Open shellandbull opened this issue 9 years ago • 6 comments

Hello!

Trying to call the component such that

{{ember-selectize content=content optionValuePath=optionValuePath optionLabelPath=optionLabelPath value=value disabled=disabled}}

Where value="some value present in the optionValuePath" Does not reflect on the component's selection and sets that value to undefined

shellandbull avatar Jun 03 '15 15:06 shellandbull

A failing test would speed things up!

miguelcobain avatar Jun 05 '15 08:06 miguelcobain

Does setting value for multiple=true selectize work? The tags aren't getting generated. content = [{ id:'a', text:'apple' }, { id:'b', text:'ball' }, { id:'c',text:'cat' }] selectedValue: [{ id: 'a', text: 'apple' }]

{{ember-selectize content=content selection=selectedValue optionValuePath="content.id" optionLabelPath="content.text" value=selectedValue}}

this shows empty input box with no tagging.

abhilashlr avatar Jun 10 '15 04:06 abhilashlr

@abhilashlr see https://github.com/miguelcobain/ember-cli-selectize/pull/59#issuecomment-111185420

HeroicEric avatar Jun 11 '15 16:06 HeroicEric

@miguelcobain I'll add one when I have the time :D

@abhilashlr same happened to me

shellandbull avatar Jun 11 '15 16:06 shellandbull

@HeroicEric thanks!

abhilashlr avatar Jul 08 '15 06:07 abhilashlr

Pre-select only works if selection is used instead of value.

btecu avatar Aug 07 '15 16:08 btecu