-
Notifications
You must be signed in to change notification settings - Fork 55
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
Value 0 of nested array not displayed and module can not be saved. #45
Comments
you should use |
Yes, in my code it's "type", just typo in the issue. please look into this. |
There were three issues here, two where solved.
|
Fixed |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When use [{type:Number}]
the value 0 will not be displayed in the input widget, I found
res.write('\n<input' + (this.value ? ' value="' + escapeHTMLComponent(this.value) + '"' : '') );
at line 60, widgets.js. where this.value will treat 0 as no value and display nothing.
And,
when you try to save an array [{type:Number}], for the 0 was not fill in the input field,
the form will post nothing to the server, and make exception in the server like:
Cast to number failed for value "NaN,NaN,NaN,NaN,NaN" at path "xxxx"
The text was updated successfully, but these errors were encountered: