You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It should be computed(union().role('radio')). Actually computed itself is a role.
Okay I have updated the examples and:
.default(value) on .computed() is not correctly shown on the configuration page
All computed schemata are not allowing to select branches (not very sure, but I didn't see any relating buttons)
MaikoTan
changed the title
Bug(Schema): Computed with Union Not Showing Options Correctly
Bug(Schema): Computed with Union Not Showing Branches Correctly
Mar 26, 2024
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
The text was updated successfully, but these errors were encountered: