diff --git a/ember/app/components/validated-input.hbs b/ember/app/components/validated-input.hbs index 51f1312f..e74ba19b 100644 --- a/ember/app/components/validated-input.hbs +++ b/ember/app/components/validated-input.hbs @@ -13,6 +13,7 @@ @placeholder={{@placeholder}} @update={{this.update}} @searchField={{@searchField}} + @visibleField={{@visibleField}} @setDirty={{this.setDirty}} @submitted={{@submitted}} @afterOptionsComponent={{@afterOptionsComponent}} diff --git a/ember/app/components/validated-input/render/template.hbs b/ember/app/components/validated-input/render/template.hbs index 425b0e98..8faf96bb 100644 --- a/ember/app/components/validated-input/render/template.hbs +++ b/ember/app/components/validated-input/render/template.hbs @@ -22,6 +22,7 @@ @searchMessage={{@searchMessage}} @noMatchesMessage={{@noMatchesMessage}} @noMatchesMessageComponent={{@noMatchesMessageComponent}} + @visibleField={{@visibleField}} @selectComponent={{this.selectComponent}} ...attributes /> diff --git a/ember/app/components/validated-input/types/select/template.hbs b/ember/app/components/validated-input/types/select/template.hbs index 6ac4ec27..e3ba3fdf 100644 --- a/ember/app/components/validated-input/types/select/template.hbs +++ b/ember/app/components/validated-input/types/select/template.hbs @@ -16,5 +16,5 @@ class='{{if @isValid "is-valid "}} {{if @isInvalid "is-invalid"}}' as |name| > - {{or (get name @searchField) name}} + {{or (get name (or @visibleField @searchField)) name}} \ No newline at end of file