This commit is contained in:
Misode
2021-10-27 20:00:13 +02:00
parent 794a094e7e
commit 89354a9743
3 changed files with 18 additions and 16 deletions

View File

@@ -377,6 +377,8 @@ function StringSuffix({ path, getValues, config, node, value, lang, states }: No
context = context.contextPush(config.enum)
} else if (!isEnum(config) && config?.validator === 'resource' && typeof config.params.pool === 'string') {
context = context.contextPush(config.params.pool)
} else if (isEnum(config)) {
context = path
}
return <select value={value ?? ''} onChange={onChange}>
{node.optional() && <option value="">{locale(lang, 'unset')}</option>}