chore: implement validation for accepting 'http://' and 'https://' url in link modal (#3147)
This commit is contained in:
parent
5b67f27345
commit
2edd2d947e
1 changed files with 1 additions and 0 deletions
|
|
@ -118,6 +118,7 @@ export const LinkModal: FC<Props> = (props) => {
|
|||
ref={ref}
|
||||
hasError={Boolean(errors.url)}
|
||||
placeholder="https://..."
|
||||
pattern="^(https?://).*"
|
||||
className="w-full"
|
||||
/>
|
||||
)}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue