add options and context to AttributeChoiceField
This commit is contained in:
parent
f6518cba74
commit
0753dd44ab
@ -272,7 +272,7 @@ class AttributeField extends SchemaField {
|
||||
}
|
||||
|
||||
class AttributeChoiceField extends StringField {
|
||||
constructor() {
|
||||
constructor(options={}, context={}) {
|
||||
return super({
|
||||
required: true,
|
||||
choices: {
|
||||
@ -286,7 +286,8 @@ class AttributeChoiceField extends StringField {
|
||||
"strength": "DSA41.attributes.long.strength",
|
||||
},
|
||||
initial: "courage",
|
||||
});
|
||||
...options,
|
||||
}, context);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user