-
Notifications
You must be signed in to change notification settings - Fork 59
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
When you expect the parameter to receive number
or boolean
, confusions occur in WebComponents
#292
Comments
I'd like to take this issue to enhance knowledge in WebComponents |
Hey @diegonvs, you're free to try, but this will have more to do with how @Robert-Frampton had some ideas about how this should be addressed and we weren't contemplating working on this for a while. If you do take a look, comment first here to agree on the strategy before putting it too much work into it. |
…emove the OR in return | Fixes metal#292 NOTE: It is not recommended to use the OR in this case once the deserilization of a boolean false is made, for example, the OR is false and return the value parameter in this case.
Hey guys,
I'm joking a bit with
WebComponents
in Clay Components and I've been experiencing some difficulties in passing the parameters in some use cases at deprecate/metal-clay-components#139.Current behavior
number
When expected is a
number
and I try to pass in single or double quotation marks simply returns the following message:This is stranger when in the component itself I pass a
number
tovalue="40"
is passed asnumber
and no error is returned. 😧string
But when expected is a
string
and I want to pass a number asstring
is returned error.The way I found to mock it, was by passing single quotes inside double quotes. for example
label = '"10"'
.boolean
When expected is
boolean
passed to paramertsvisible='false'
is return:Expected behavior
Expected is matched to the cases above.
number
Pass the values as
number
.string
When I pass a
10
value that is passed as a string. How could we distinguish this?boolean
When passing
false
value, it is likeboolean
.The text was updated successfully, but these errors were encountered: