Open MaikoTan opened 7 months ago
computed(union()).role('radio')
It should be computed(union().role('radio'))
. Actually computed
itself is a role.
computed(union()).role('radio')
It should be
computed(union().role('radio'))
. Actuallycomputed
itself is a role.
Okay I have updated the examples and:
.default(value)
on .computed()
is not correctly shown on the configuration page
Describe the bug
Computed schema with union schema behaves weird currently.
Also some are not visible in production mode.
union()
✅computed(number())
❌ branches ✅ save configcomputed(union())
✅ resolve options ❌ branches ✅ save configcomputed(union([const(), const()])
✅ resolve options ❌ branches ✅ save configcomputed(union([const(), const(), object()])
✅ resolve options ❌ branches ✅ save configcomputed(union()).role('radio')
✅ resolve options ❌ branches ✅ save configcomputed(union([const(), const()]).role('radio')
✅ resolve options ❌ branches ✅ save configSteps to reproduce
Or see this repo instead
Expected behaviour
Able to resolve options and save config correctly.
Screenshots
Dev Mode
Prod Mode
Versions
Additional context
No response