laravel / nova-issues

556 stars 34 forks source link

Multiple 'canRun' callbacks are not repecting truthy states #6466

Closed jonnigg closed 3 months ago

jonnigg commented 4 months ago

Description:

This issue is exactly the same issue as Issue 6124 where it was indicated that it was fixed--though it appears to be unresolved. When returning multiple canRun callback functions, when one canRun function returns false, any subsequent callback functions return true regardless of their actual truthy value. In short, I can not have two + N callback functions return false.

Detailed steps to reproduce the issue on a fresh Nova installation:

Return two canRun functions as false

image

image

Return one true one false

image

image

Return one true one false image

image

jonnigg commented 4 months ago

This seems to be specific to the actions dropdown menu that appears when performing the check box selection. Inline and the details page seems to respect the truthy values as expected.

github-actions[bot] commented 3 months ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.