Skip to content

Commit

Permalink
fix: validation working for gender and country (#3802)
Browse files Browse the repository at this point in the history
  • Loading branch information
maze-runnar authored and iamareebjamal committed Jan 15, 2020
1 parent 8a1e22e commit cfe7baf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/templates/components/forms/session-speaker-form.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@
{{#if (eq field.fieldIdentifier 'country')}}
{{#ui-dropdown class='search selection' selected=data.speaker.country forceSelection=false
fullTextSearch=true}}
{{input type='hidden' id='speaker_country' value=data.speaker.country}}
{{input type='hidden' id=(if field.isRequired (concat 'speaker_' field.fieldIdentifier '_required') (concat 'speaker_' field.fieldIdentifier)) value=data.speaker.country}}
<i class="dropdown icon"></i>
<div class="default text">{{get data 'selectedCountry'}}</div>
<div class="menu">
Expand All @@ -264,6 +264,7 @@
{{/ui-dropdown}}
{{else if (eq field.fieldIdentifier 'gender')}}
{{#ui-dropdown class='search selection' selected=data.speaker.gender onChange=(action (mut data.speaker.gender)) as |execute mapper|}}
{{input type="hidden" id=(if field.isRequired (concat 'speaker_' field.fieldIdentifier '_required') (concat 'speaker_' field.fieldIdentifier)) value=data.speaker.gender}}
<i class="dropdown icon"></i>
<div class="default text">{{t 'Select your gender'}}</div>
<div class="menu">
Expand Down

0 comments on commit cfe7baf

Please sign in to comment.