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

Commit

Permalink
fix(component): always parse association-select placeholder as html
Browse files Browse the repository at this point in the history
  • Loading branch information
VMBindraban authored and doktordirk committed Nov 1, 2016
1 parent 10ad99a commit fcbee42
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,3 +180,8 @@ For instance, `@resource()` would use the module's name to set the resource.

So keep in mind: When using aurelia-orm in a bundled application, you must specify a value for your decorators.
For instance, `@decorator('category')`.


## Known hacks

- The association-select always parses the `placeholderText` as html (`t="[html]${placeholderText}"`) due a [aurelia-i18n binding issue](https://github.com/aurelia/i18n/issues/147).
2 changes: 1 addition & 1 deletion src/component/association-select.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<select class="form-control" value.bind="value" multiple.bind="multiple">
<option selected disabled.bind="!hidePlaceholder && !selectablePlaceholder" value="0" show.bind="!hidePlaceholder" t="${placeholderText || '- Select a value -'}">${placeholderText || '- Select a value -'}</option>
<option selected disabled.bind="!hidePlaceholder && !selectablePlaceholder" value="0" 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 fcbee42

Please sign in to comment.