conditional-container
conditional-container copied to clipboard
Validations not working
Nova Version: 3.32.0
I have following code structure
Toggle::make(__('Standard'), 'is_standard')
->trueColor('green')
->falseColor('red')
->default(true),
ConditionalContainer::make([
BelongsTo::make(__('Task Category'), 'taskCategory', 'App\Nova\TaskCategory')
->rules('required')
])
->if('is_standard truthy true'),
As you can see from above images the validation didn't work on task standard field i.e belongs to field under conditional container.
Can you try rollback 1 version and see if it works? v1.4.2
Yes it works for v1.4.2
composer.json
"digital-creative/conditional-container": "1.4.2",