Skip to content

Default Callback not working on Repeater Fields #5732

@christian-heiko

Description

@christian-heiko
  • Laravel Version: 9.52.10
  • Nova Version: 4.26.5
  • PHP Version: 8.1.14

Description:

Default Value or Default Value Callback is not working inside of Repeater Fields.

return [ Text::make('Test', 'test')->default(function () { dd('This should be called.'); }), ];

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

  1. Create a Repeater Item with Fields
  2. Give the Fields a default value or a default value callback
  3. Check the Form.

Metadata

Metadata

Assignees

Labels

bugVerified bug by the Nova team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions