Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug][MaskedTextBox] The required property is ignored #2810

Open
Yanko-Georgiev opened this issue Jan 20, 2025 · 1 comment
Open

[Bug][MaskedTextBox] The required property is ignored #2810

Yanko-Georgiev opened this issue Jan 20, 2025 · 1 comment
Labels
Bug Item which indicates that something is not working C: MaskedTextBox KendoReact pkg:Inputs SEV: High

Comments

@Yanko-Georgiev
Copy link
Collaborator

Yanko-Georgiev commented Jan 20, 2025

Description

The form can be submitted when the required property of the MaskedTextBox is set and the value is null.

Steps To Reproduce

  1. Open the following example: https://stackblitz.com/edit/react-l2a5ascq?file=app%2Fapp.jsx
  2. Submit the form
  3. Notice the form is submitted even when the MaskedTextBox has no value

Actual Behavior

The form is submitted when the required property of the MaskedTextBox is set and the value is null.

Expected Behavior

The form should not be submitted when the required property of the MaskedTextBox is set and the value is null.

Reported in Ticket ID: 1676166

@Yanko-Georgiev Yanko-Georgiev added Bug Item which indicates that something is not working C: MaskedTextBox KendoReact pkg:Inputs SEV: High labels Jan 20, 2025
@Yanko-Georgiev Yanko-Georgiev changed the title [Bug][MaskedTextBox] The required property is ignored by the form [Bug][MaskedTextBox] The required property is ignored Jan 20, 2025
@Yanko-Georgiev
Copy link
Collaborator Author

Yanko-Georgiev commented Jan 20, 2025

As a workaround, you can add a custom validation message and the required property will be considered:
https://stackblitz.com/edit/react-l2a5ascq?file=app%2Fapp.jsx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Item which indicates that something is not working C: MaskedTextBox KendoReact pkg:Inputs SEV: High
Projects
None yet
Development

No branches or pull requests

1 participant