Skip to content
Snippets Groups Projects
Commit 4d93072a authored by François Grand's avatar François Grand
Browse files

fix: select field: check default value

parent 13153718
No related branches found
No related tags found
2 merge requests!225Release v4.17.0,!176Resolve "Fusionner les "select" avec "source" et les "select_custom""
......@@ -133,6 +133,9 @@ export abstract class SelectField extends Field {
val = this._entries[0];
} else {
val = this.getEntryFromValue(enumValueFromString(this._associatedProperty, this._configDefaultValue));
if (val === undefined) {
throw Error("invalid select default value " + this._configDefaultValue + " for " + this._associatedProperty + " property");
}
}
if (this._multiple) {
this.setValue([val]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment