Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
fix(association-select): use model.bind instead of value.bind
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Can break module for users that expect a string when given `undefined`, `null` or `[]`.
  • Loading branch information
VMBindraban committed Jan 31, 2017
1 parent 17b8d4e commit 855c24a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 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.