-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Integer field type inconsistency #2223
Comments
Ah, I see. Yes, I think your solution works, to fix invalid types for now. If you'd like, you could make another PR that restores the consistency (and label it
Perhaps, I'm interested in hearing what you think about your thoughts here -- how do you think this could be accomplished? |
Related PR: #2222 |
It seems to me that from a consistency perspective, it would make more sense to keep the default behavior, update documentation and other themes. |
Fixed in the v5 beta, see the 5.x migration guide |
Prerequisites
Description
Fields across different themes are inconsistent. For schema
{ "type": "integer"}
the form is displaying the field asinput[type="number"]
input in both core and antD themes, but in all other themes it hasinput[type="integer"]
(on the DOM level) - which is not valid type. According to the widgets documentation:Expected behavior
Fields should behave like described in documentation
Version
v2.4.2
Maybe for now it would be enough to fix all the fields which use invalid type and then restore the consistency with a major release?
Also, wouldn't it be easier to maintain the code if the logic for displaying field would be more explicit/strict, so that StringField wouldn't be responsible for displaying number/integer by default?
@epicfaace I can handle that issue, what do you think about the solution?
The text was updated successfully, but these errors were encountered: