laravel / nova-issues

557 stars 34 forks source link

Using setValue on field definition breaks the chain #5043

Closed sentq closed 2 years ago

sentq commented 2 years ago

Description:

When I try setting a value for a field using the setValue method, it would break the whole page, since this method isn't chain-able.

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

crynobone commented 2 years ago

The method was designed to be only within dependsOn() where it doesn't have to be chain-able. Feel free to submit a feature request.