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

Fix default selected option #1511

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

a-sync
Copy link

@a-sync a-sync commented Mar 23, 2024

Bugs:

  • rendered inputs do not have the initial value selected
  • value is set to undefined instead of placeholder if inital value is not in enum
Q A
Is bugfix? ✔️
New feature?
Is backward-compatible? ✔️
Tests pass?
Fixed issues
Updated README/docs?
Added CHANGELOG entry?

 * corrects the execution context in simplemde chrome workaround when using `autorefresh` option
 * restores the functionality of select/select2/selectize inputs broken by json-editor#1499.

Bugs: 
 * rendered inputs do not have the initial value selected
 * value is set to undefined instead of placeholder if inital value is not in enum
@a-sync a-sync changed the title Fix selected option Fix default selected option Mar 23, 2024
 * good: shows the placeholder when loading a new field without a default value
 * bad: falls back to the first enum value when saving instead of failing validation
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

Successfully merging this pull request may close these issues.

None yet

2 participants