Skip to content

Commit

Permalink
fix(select): pass prompt argument down to input component
Browse files Browse the repository at this point in the history
  • Loading branch information
anehx committed Feb 22, 2022
1 parent dc0417d commit 64a1377
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions addon/components/validated-input.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
@isInvalid={{this.isInvalid}}
@placeholder={{@placeholder}}
@class={{@class}}
@prompt={{@prompt}}
@promptIsSelectable={{@promptIsSelectable}}
@optionLabelPath={{@optionLabelPath}}
@optionValuePath={{@optionValuePath}}
Expand Down
1 change: 1 addition & 0 deletions addon/components/validated-input/-themes/uikit/render.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
@options={{@options}}
@optionTargetPath={{@optionTargetPath}}
@optionValuePath={{@optionValuePath}}
@prompt={{@prompt}}
@promptIsSelectable={{@promptIsSelectable}}
@setDirty={{@setDirty}}
@update={{@update}}
Expand Down
1 change: 1 addition & 0 deletions addon/components/validated-input/render.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
@options={{@options}}
@optionTargetPath={{@optionTargetPath}}
@optionValuePath={{@optionValuePath}}
@prompt={{@prompt}}
@promptIsSelectable={{@promptIsSelectable}}
@setDirty={{@setDirty}}
@update={{@update}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ The select element also supports the following options:
name = 'country'
value = 'Germany'
options = (array 'USA' 'Switzerland' 'Germany' 'Spain' 'India')
includeBlank = 'Please choose...'
prompt = 'Please choose...'
promptIsSelectable = true
}}
{{/validated-form}}
Expand Down
2 changes: 1 addition & 1 deletion tests/dummy/app/templates/index.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
@type="select"
@label="Country"
@name="country"
@includeBlank="Select a country"
@prompt="Select a country"
@options={{this.countries}}
@value={{@model.country}}
@required={{true}}
Expand Down

0 comments on commit 64a1377

Please sign in to comment.