Skip to content

Commit

Permalink
fix(apply): 🐛 Max values of Dropdown Question
Browse files Browse the repository at this point in the history
  • Loading branch information
Nudelsuppe42 committed Oct 18, 2023
1 parent 32caad0 commit 3de18e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/application/questions/DropdownQuestion.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function validation(props: DropdownQuestionProps): (value: string) => void {
}

const DropdownQuestion = (props: DropdownQuestionProps) => {
return <MultiSelect leftSection={<Icon name={props.icon} />} required={props.required} description={props.subtitle} label={props.title} data={props.additionalData.options} style={props.style} max={props.additionalData.maxSelect} onChange={(e) => props.onChange && props.onChange(e)} error={props.error} />;
return <MultiSelect leftSection={<Icon name={props.icon} />} required={props.required} description={props.subtitle} label={props.title} data={props.additionalData.options} style={props.style} maxValues={props.additionalData.maxSelect} onChange={(e) => props.onChange && props.onChange(e)} error={props.error} />;
};

const EditQuestion = ({ editingQuestion, handleUpdateEditingQuestion }: any) => {
Expand Down

0 comments on commit 3de18e2

Please sign in to comment.