Open
Description
The regular expression in https://vaadin.com/docs/latest/components/text-field#constraints is wrong
Compare:
TextField f4 = new TextField();
f4.setPattern("^[+]?[(]?[0-9]{3}[)]?[-s.]?[0-9]{3}[-s.]?[0-9]{4,6}$");
TextField f5 = new TextField();
f5.setPattern("^[+]?[\\(]?[0-9]{3}[\\)]?-?\\s*[0-9]{3}-?\\s*[0-9]{4,6}$");
add(f4, f5);
Only the second field performs native client-side validation
If you think this issue is important, add a 👍 reaction to help the community and maintainers prioritize this issue.