Fixes #80572: register correct default in JSON schema for enums

This commit is contained in:
Alex Dima
2019-09-09 21:43:55 +02:00
parent 7226e32d1b
commit 0a378fda42
+1 -1
View File
@@ -863,7 +863,7 @@ class EditorEnumOption<K1 extends EditorOption, T extends string, V> extends Bas
if (typeof schema !== 'undefined') {
schema.type = 'string';
schema.enum = allowedValues;
schema.default = defaultValue;
schema.default = defaultStringValue;
}
super(id, name, defaultValue, schema);
this._allowedValues = allowedValues;