Permalink
Browse files

fix(association-select): use model.bind instead of value.bind

BREAKING CHANGE: Can break module for users that expect a string when given `undefined`, `null` or `[]`.
  • Loading branch information...
VMBindraban
VMBindraban committed Jan 16, 2017
1 parent 17b8d4e commit 855c24a33a758e0e6adf4e699f3a97c5e7c009aa
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/component/association-select.html
@@ -1,6 +1,6 @@
<template>
<select class="form-control" value.bind="value" multiple.bind="multiple" disabled.bind="disabled">
<option selected disabled.bind="!hidePlaceholder && !selectablePlaceholder" value.bind="placeholderValue" show.bind="!hidePlaceholder" t="[html]${placeholderText || '- Select a value -'}">${placeholderText || '- Select a value -'}</option>
<option selected disabled.bind="!hidePlaceholder && !selectablePlaceholder" model.bind="placeholderValue" show.bind="!hidePlaceholder" t="[html]${placeholderText || '- Select a value -'}">${placeholderText || '- Select a value -'}</option>
<option model.bind="option.id" repeat.for="option of options">${option[property]}</option>
</select>
</template>

0 comments on commit 855c24a

Please sign in to comment.