Skip to content

Commit

Permalink
feat: added visibleField to select inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
c0rydoras committed Oct 23, 2023
1 parent 37a7454 commit 1cd124e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions ember/app/components/validated-input.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
@placeholder={{@placeholder}}
@update={{this.update}}
@searchField={{@searchField}}
@visibleField={{@visibleField}}
@setDirty={{this.setDirty}}
@submitted={{@submitted}}
@afterOptionsComponent={{@afterOptionsComponent}}
Expand Down
1 change: 1 addition & 0 deletions ember/app/components/validated-input/render/template.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
@searchMessage={{@searchMessage}}
@noMatchesMessage={{@noMatchesMessage}}
@noMatchesMessageComponent={{@noMatchesMessageComponent}}
@visibleField={{@visibleField}}
@selectComponent={{this.selectComponent}}
...attributes
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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}}
</@selectComponent>

0 comments on commit 1cd124e

Please sign in to comment.