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

Set the first value as the default in property with type PropTypes.oneOf #31

Closed
ipselon opened this issue Apr 16, 2020 · 1 comment
Closed
Assignees
Labels
2.0.x bug Something isn't working
Milestone

Comments

@ipselon
Copy link
Contributor

ipselon commented Apr 16, 2020

When the user adds the item in the array on the property editor, and one of the fields of the array's item has a PropTypes.oneOf property, the property field in the property editor displays the value of the first item from the values in the dropdown. But, the real value of such property is undefined until the user does not select value from the dropdown.

Details:

  • It worth analyzing the array values of the PropTypes.oneOf property and implicitly set the first value as the default.
@ipselon ipselon self-assigned this Apr 16, 2020
@ipselon ipselon added 2.0.x bug Something isn't working labels Apr 16, 2020
@ipselon ipselon added this to To Do in Versions 2.0.x via automation Apr 16, 2020
@ipselon ipselon added this to the Version 2.0.3 milestone Apr 16, 2020
@ipselon ipselon moved this from To Do to In Progress in Versions 2.0.x Apr 17, 2020
@ipselon ipselon moved this from In Progress to Done in Versions 2.0.x Apr 17, 2020
@ipselon
Copy link
Contributor Author

ipselon commented Apr 18, 2020

@ipselon ipselon closed this as completed Apr 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.0.x bug Something isn't working
Projects
Development

No branches or pull requests

1 participant