We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Important Notice We do not provide support through GitHub issues. For community-based help, please use either:
If you're reporting a bug, please continue with this template.
Describe the bug Attributes fo FT with a numeric value of 0 are ignored. Changing to str "0" works, though.
Minimal Reproducible Example Provide a minimal code snippet that reproduces the issue. This is crucial for us to understand and fix the bug quickly.
from fasthtml.core import to_xml from fasthtml.components import Input # ignored num_input = Input(type="number", min=0, max=100) txt_input = Input(type="text", minlength=0, maxlength=100) print("min ignored:\n", to_xml(num_input), "minlength ignored:\n", to_xml(txt_input)) # accepted num_input = Input(type="number", min="0", max=100) txt_input = Input(type="text", minlength="0", maxlength=100) print("min accepted:\n", to_xml(num_input), "minlength accepted:\n", to_xml(txt_input))
Output:
min ignored: <input type="number" max="100"> minlength ignored: <input type="text" maxlength="100"> min accepted: <input type="number" min="0" max="100"> minlength accepted: <input type="text" minlength="0" maxlength="100">
Expected behavior That numeric values of 0 are accepted for FT attributes.
Environment Information Please provide the following version information:
Confirmation Please confirm the following:
Additional context Add any other context about the problem here.
Screenshots If applicable, add screenshots to help explain your problem.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Important Notice
We do not provide support through GitHub issues. For community-based help, please use either:
If you're reporting a bug, please continue with this template.
Describe the bug
Attributes fo FT with a numeric value of 0 are ignored. Changing to str "0" works, though.
Minimal Reproducible Example
Provide a minimal code snippet that reproduces the issue. This is crucial for us to understand and fix the bug quickly.
Output:
Expected behavior
That numeric values of 0 are accepted for FT attributes.
Environment Information
Please provide the following version information:
Confirmation
Please confirm the following:
Additional context
Add any other context about the problem here.
Screenshots
If applicable, add screenshots to help explain your problem.
The text was updated successfully, but these errors were encountered: