add options and context to AttributeChoiceField

This commit is contained in:
Sven Balzer 2025-05-04 11:26:49 +02:00
parent f6518cba74
commit 0753dd44ab

View File

@ -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);
}
}