-
Notifications
You must be signed in to change notification settings - Fork 318
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Forms: re-enable max and min limits for Number fields(#1915)
Co-authored-by: Ali Alam <[email protected]>
- Loading branch information
Showing
3 changed files
with
5 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
<div class="flex-grow relative flex" > | ||
<input type="text" <?= $attributes; ?> | ||
class="w-full rounded-md border py-2 text-gray-900 placeholder:text-gray-500 | ||
<input type="number" <?= $attributes; ?> | ||
min=<?= $min; ?> max=<?= $max; ?> | ||
class="w-full rounded-md border py-2 text-gray-900 placeholder:text-gray-500 | ||
focus:ring-1 focus:ring-inset focus:ring-blue-500 sm:text-sm sm:leading-6" /> | ||
</div> |
a3a8bb3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Work. It runs perfectly, but there are only two error messages: "Only integers allowed" and "Only numbers allowed." I believe it should display an error message indicating that the input number is out of range.
a3a8bb3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
core/src/Forms/Input/Input.php
Line 207 in a3a8bb3
a3a8bb3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a3a8bb3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@SKuipers Is this request feasible? Thank you.