Skip to content

[Bug]: Input field in Email mode validates incorrectly for long TLD #33837

@dlopez-tcde

Description

@dlopez-tcde

Is there an existing issue for this?

  • I have searched the existing issues

Description

Input field in Email mode validates incorrectly for long domain TLD.

Workaround: Change input type to single line text and set the regex using an RFC 5322 compliant expression:

(?:[a-z0-9!#$%&'+/=?^_{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_{|}~-]+)|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\[\x01-\x09\x0b\x0c\x0e-\x7f])")@(?:(?:a-z0-9?.)+a-z0-9?|[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?).){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-][a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\[\x01-\x09\x0b\x0c\x0e-\x7f])+)])

Steps To Reproduce

  • add input widget
  • set data type to "email"
  • add valid email "testing@test.school"
  • error messages
  • deploy
  • type something in email input
  • validation triggered
  • error shown

Public Sample App

No response

Environment

Production

Severity

Low (Cosmetic UI issues)

Issue video log

No response

Version

Self Hosted v1.22.1

Metadata

Metadata

Labels

BugSomething isn't workingCommunity Reportedissues reported by community membersLowAn issue that is neither critical nor breaks a user flowNeeds TriagingNeeds attention from maintainers to triageProduction

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions