mirror of
https://github.com/formbricks/formbricks.git
synced 2026-02-05 10:36:06 -06:00
fix: Phone validation (#1987)
This commit is contained in:
committed by
GitHub
parent
51a811ac8e
commit
43566a54b6
@@ -94,7 +94,7 @@ export default function OpenTextQuestion({
|
||||
onSubmit({ [question.id]: value, inputType: question.inputType }, updatedttc);
|
||||
}
|
||||
}}
|
||||
pattern={question.inputType === "phone" ? "[+][0-9 ]+" : ".*"}
|
||||
pattern={question.inputType === "phone" ? "[0-9+ ]+" : ".*"}
|
||||
title={question.inputType === "phone" ? "Enter a valid phone number" : undefined}
|
||||
/>
|
||||
) : (
|
||||
|
||||
Reference in New Issue
Block a user