Skip to content

DBInput: Min and max props with type string results in NaN #4143

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

Open
1 of 7 tasks
biancavo opened this issue Apr 30, 2025 · 0 comments · May be fixed by #4144
Open
1 of 7 tasks

DBInput: Min and max props with type string results in NaN #4143

biancavo opened this issue Apr 30, 2025 · 0 comments · May be fixed by #4144
Labels

Comments

@biancavo
Copy link

Which generators are impacted?

  • All
  • HTML
  • React
  • Angular
  • Vue
  • Web components
  • Power Apps

Reproduction case

After updating from version 1.2.1 to 2.0.5 the min an max props with type string in DBInputs don't work anymore. DBInputs with min and max props with type number still work normally.

Example
Code:
<DBInput type="date" min="2024-12-15" max="2025-12-13" />
Browser:
<input type="date" min="NaN" max="NaN">

Expected Behaviour

The min an max props with type string should work normally as in the previous version.

Example
Code:
<DBInput type="date" min="2024-12-15" max="2025-12-13" />
Browser:
<input type="date" min="2024-12-15" max="2025-12-13">

Screenshots

No response

Browser version

None

Add any other context about the problem here.

No response

@mfranzke mfranzke added the 👩‍👧‍👦communityFeedback Feedback from community label Apr 30, 2025
@mfranzke mfranzke moved this to 📋 Backlog in UX Engineering Team Backlog Apr 30, 2025
@mfranzke mfranzke moved this from 📋 Backlog to 🏗 In development in UX Engineering Team Backlog Apr 30, 2025
@mfranzke mfranzke linked a pull request Apr 30, 2025 that will close this issue
5 tasks
@mfranzke mfranzke linked a pull request Apr 30, 2025 that will close this issue
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: 🏗 In development
Development

Successfully merging a pull request may close this issue.

2 participants