We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5633af4 commit f3bcdf2Copy full SHA for f3bcdf2
src/editors/select.js
@@ -9,7 +9,7 @@ export class SelectEditor extends AbstractEditor {
9
const haveToUseDefaultValue = !!this.jsoneditor.options.use_default_values || typeof this.schema.default !== 'undefined'
10
11
if (
12
- !this.enum_values.includes(sanitized) ||
+ (this.enum_options.length > 0 && !this.enum_values.includes(sanitized)) ||
13
(initial && !this.isRequired() && !haveToUseDefaultValue)
14
) {
15
sanitized = this.enum_values[0]
0 commit comments