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

Bug with Boolean Field inside Conditional Container #79

Open
Lednerb opened this issue May 31, 2022 · 0 comments
Open

Bug with Boolean Field inside Conditional Container #79

Lednerb opened this issue May 31, 2022 · 0 comments

Comments

@Lednerb
Copy link

Lednerb commented May 31, 2022

I've just discovered a strange bug with the latest update of this package (affecting v.1.4.3) causing Boolean fields inside the container not to work any more.

Attached you find a short screen cast that demonstrates the behaviour:

  • The first Boolean field is the trigger for the Conditional Container
  • The second one does not update

bug-conditionalContainer

I'm using Nova v3.32.0

Version 1.4.2 of this package works fine, so if somebody has the same issue the best fit at the moment would be to downgrade until an update will fix the issue.


Here is my Nova field list:

Boolean::make(__('Is task'), 'is_task')
    ->hideFromIndex(),

ConditionalContainer::make([
    Boolean::make(__('Is finished'), 'is_finished')
        ->showOnDetail()
        ->showOnUpdating()
        ->hideFromIndex()
        ->hideWhenCreating(),

    Date::make(__('Task due at'), 'expiration_date')
        ->firstDayOfWeek(1)
        ->format('DD.MM.YYYY'),

    BelongsTo::make(__('Assigned User'), 'assignedUser', 'App\Nova\User')
        ->default(auth()->user()->id)
        ->rules(['required_if:is_task,1'])
        ->nullable(),
])->if('is_task truthy true'),
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

1 participant