We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent daacc4f commit 3ca37b7Copy full SHA for 3ca37b7
src/components/Poll/PollCreationDialog/PollCreationDialog.tsx
@@ -123,8 +123,9 @@ export const PollCreationDialog = ({ close }: PollCreationDialogProps) => {
123
id='max_votes_allowed'
124
onChange={(e) => {
125
const isValidValue =
126
- !e.target.value ||
127
- e.target.value.match(VALID_MAX_VOTES_VALUE_REGEX);
+ e.target.validity.valid &&
+ (!e.target.value ||
128
+ e.target.value.match(VALID_MAX_VOTES_VALUE_REGEX));
129
if (!isValidValue) {
130
setMultipleAnswerCountError(
131
t<string>('Type a number from 2 to 10'),
0 commit comments