Closed David-Melo closed 6 years ago
Hello,
can you give me a code sample so i can reproduce the error?
Thanks
I have the same problem. Ajax returns good values. But select fields are not selected.
NovaBelongsToDepend::make('X')
->options(X::all())
->rules('required'),
NovaBelongsToDepend::make('Y name', 'section', Y::class)
->optionsResolve(function ($x) {
return $x->y;
})
->dependsOn('x')
->rules('required'),
NovaBelongsToDepend::make('Z name', 'z', Z::class)
->optionsResolve(function ($y) {
return $y->z;
})
->dependsOn('y')
->rules('required'),
Hello,
thanks for the report and sorry for the issue!
Should be fixed now.
On the index page, preview page and in the database, the field is populated correctly. On the edit page the field appears to be empty and not set.