Made title for phone more clear

This commit is contained in:
Naitik
2023-10-05 00:58:57 +05:30
parent 32f793e43c
commit 815c642a37

View File

@@ -80,7 +80,7 @@ export default function OpenTextQuestion({
onInput={(e) => handleInputChange(e.currentTarget.value)}
autoFocus={autoFocus}
pattern={question.inputType === "phone" ? "[+][0-9]+" : undefined}
title={question.inputType === "phone" ? "Enter a valid phone number" : undefined}
title={question.inputType === "phone" ? "Enter a valid phone number (+123...)" : undefined}
className={`block w-full rounded-md border
border-slate-100
bg-slate-50 p-2 shadow-sm focus:border-slate-500 focus:outline-none focus:ring-0 sm:text-sm`}