Skip to content
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

Button Box - when 0 as value, default value is applied #23

Closed
olsp opened this issue Jul 12, 2018 · 5 comments
Closed

Button Box - when 0 as value, default value is applied #23

olsp opened this issue Jul 12, 2018 · 5 comments

Comments

@olsp
Copy link

olsp commented Jul 12, 2018

I'm using a button box and have values from 0 to 20. When I set 6 as default value for the field and then choose 0 as actual value, the default value is applied.

@Nav33d
Copy link
Contributor

Nav33d commented Jul 13, 2018

@olsp Could you please let me know the field you are using?

@olsp
Copy link
Author

olsp commented Jul 15, 2018

@Nav33d I use the width field, sorry for leaving out this information in the first place.

@Nav33d
Copy link
Contributor

Nav33d commented Aug 2, 2018

@olsp Yes its because 0 evaluates to false which then sets the default value. Could you please use letters as values like zero, one and so on.

Many thanks

@olsp
Copy link
Author

olsp commented Aug 2, 2018

But does it make sense to have a "false" value in a width field?

@adrianjean
Copy link

Maybe instead of "false" it's "null" if there is nothing set.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants