I'm trying to have a multiple-choice select with a dependency for one or more values.
There are 3 choices: A, B, or C.
So there is exactly 7 differents possibilities + the empty possibility:
A
B
C
A, B
A, C
B, C
A, B, C
Dependencies are working but if you select C then B within a theme (for example material UI theme), oneOf is failing because he doesn't match to [B, C] because its value is [C, B].
As it's happening without a specific theme on rjsf, [C, B] will match to [B, C] array.
Actual behavior
ignoring oneOf in dependencies because there isn't exactly one subschema that is valid
[C, B] is different from [B, C] for oneOf. It must match if the array contains the same things. Or it will be really heavy for A, B, C choice to define oneOf 14 possibilities for that example :
A
B
C
A, B
B, A
A, C
C, A
B, C
C, B
A, B, C
B, A, C
B, C, A
C, B, A
C, A, B
I also tried to reorder the formdata array but the error is happening before onChange trigger.
Prerequisites
shared playground link of bug
Description
I'm trying to have a multiple-choice select with a dependency for one or more values.
There are 3 choices: A, B, or C. So there is exactly 7 differents possibilities + the empty possibility: A B C A, B A, C B, C A, B, C
Dependencies are working but if you select C then B within a theme (for example material UI theme), oneOf is failing because he doesn't match to [B, C] because its value is [C, B].
Steps to Reproduce
Expected behavior
As it's happening without a specific theme on rjsf, [C, B] will match to [B, C] array.
Actual behavior
[C, B] is different from [B, C] for oneOf. It must match if the array contains the same things. Or it will be really heavy for A, B, C choice to define oneOf 14 possibilities for that example :
A B C A, B B, A A, C C, A B, C C, B A, B, C B, A, C B, C, A C, B, A C, A, B
I also tried to reorder the formdata array but the error is happening before onChange trigger.
Version
"@rjsf/core": "^2.5.1", "@rjsf/material-ui": "^2.5.1",