File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 33 < select
44 name ="gender-identity "
55 [field] ="identity().gender "
6- (change) ="maybeUpdateSalutationAndPronoun($event ) "
6+ (change) ="maybeUpdateSalutationAndPronoun() "
77 >
88 < option value ="" selected > Please select</ option >
99 < option value ="male "> Male</ option >
Original file line number Diff line number Diff line change @@ -41,8 +41,8 @@ export const identitySchema = schema<GenderIdentity>((path) => {
4141export class IdentityForm {
4242 readonly identity = input . required < FieldTree < GenderIdentity > > ( ) ;
4343
44- protected maybeUpdateSalutationAndPronoun ( event : Event ) {
45- const gender = ( event . target as HTMLSelectElement ) . value ;
44+ protected maybeUpdateSalutationAndPronoun ( ) {
45+ const gender = this . identity ( ) . gender ( ) . value ( ) ;
4646 if ( gender !== 'diverse' ) {
4747 this . identity ( ) . salutation ( ) . value . set ( '' ) ;
4848 this . identity ( ) . pronoun ( ) . value . set ( '' ) ;
You can’t perform that action at this time.
0 commit comments