Skip to content

Commit

Permalink
Set value of max per option to 1 after method change
Browse files Browse the repository at this point in the history
  • Loading branch information
reiterl committed Jan 7, 2025
1 parent 643e846 commit c9adafc
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,9 @@ export abstract class BasePollFormComponent extends BaseComponent implements OnI
} else {
this.contentForm.removeControl(`votes_amount`);
}
if (method === `N`) {
this.contentForm.get(`votes_amount`).get(`max_votes_per_option`).setValue(1);
}
}

/**
Expand Down

0 comments on commit c9adafc

Please sign in to comment.