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

Vanilla enum renderer should store undefined instead of empty string #1959

Closed
sdirix opened this issue Jun 21, 2022 · 0 comments · Fixed by #1961
Closed

Vanilla enum renderer should store undefined instead of empty string #1959

sdirix opened this issue Jun 21, 2022 · 0 comments · Fixed by #1961

Comments

@sdirix
Copy link
Member

sdirix commented Jun 21, 2022

Describe the bug

When selecting the empty option in React Vanilla's enum renderer, an empty string is stored instead of undefined. This is unexpected and also leads to validation errors.

Expected behavior

Undefined should be stored instead of the empty string when an enum is "unselected".

Steps to reproduce the issue

  1. Run the person example
  2. Select a nationality
  3. Unselect nationality

Screenshots

No response

In which browser are you experiencing the issue?

102.0.5005.115

Framework

React

RendererSet

Vanilla

Additional context

No response

@sdirix sdirix changed the title Vanilla enum renderer stores empty string instead of undefined Vanilla enum renderer should store undefined instead of empty string Jun 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant