Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validations not working #80

Open
ZoreAnkit opened this issue Jul 11, 2022 · 2 comments
Open

Validations not working #80

ZoreAnkit opened this issue Jul 11, 2022 · 2 comments

Comments

@ZoreAnkit
Copy link

ZoreAnkit commented Jul 11, 2022

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'),

screenshot-localhost-2022 07 11-13_15_37

screenshot-localhost-2022 07 11-13_16_12

As you can see from above images the validation didn't work on task standard field i.e belongs to field under conditional container.

@milewski
Copy link
Member

Can you try rollback 1 version and see if it works? v1.4.2

@ZoreAnkit
Copy link
Author

Yes it works for v1.4.2

screenshot-localhost-2022 07 11-13_59_09

composer.json

"digital-creative/conditional-container": "1.4.2",

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants