Actions
Task #105524
openFormEngine: input fields of type number are not working as expected when browser-native validation gets "bad input"
Status:
Under Review
Priority:
Should have
Assignee:
-
Category:
Backend User Interface
Target version:
-
Start date:
2024-10-30
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
13
PHP Version:
Tags:
Complexity:
Sprint Focus:
Description
Issue for input
-field with "bad input"¶
If the user has provided input that the browser is unable to convert, then programmatically reading the value
-property returns an empty string, even though the browser is showing the user's input to the user.
Thereby the change
-event does not trigger on the second attempt of bad input, as the value
-property keeps returning just the empty string again.
Reproducible with input
-field of type="number"
:¶
- In Firefox insert any invalid value:
E.g.123px
, then unfocus the field and then change it to1234px
.
- In Chrome insert invalid values, consisting of only
0-9
and at max one of each character+-.e
:
E.g.1-3
, then unfocus the field and then change it to1-4
.
Also see: https://developer.mozilla.org/en-US/docs/Web/API/ValidityState/badInput
Actions