ConditionalValidator icon indicating copy to clipboard operation
ConditionalValidator copied to clipboard

added a break to the for loop.

Open devc0n opened this issue 5 years ago • 0 comments

If you have the following setup with the @Conditional

@Conditional(selected = "X", required = {"Y", "Z"})
@Conditional(selected = "Y", required = {"X", "Z"})
@Conditional(selected = "Z", required = {"X", "Y"})

The validation might go wrong during the loop, adding the break will ensure the !valid is passed through.

devc0n avatar Apr 09 '20 07:04 devc0n