-
Notifications
You must be signed in to change notification settings - Fork 34
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
Default Callback not working on Repeater Fields #5732
Comments
@christian-heiko Can I ask what you're using the |
In a Tool for an event-company they have events with work-shifts (the repeater). and i want to have the shifts to have the same start/end as the event, as it is the same for 80% of the time. but thats maybe already a edge-case. most of the time i want to reduce work of the users for stuff that stays the same most of the time but can be changed if needed. the repeater is a long waited feature as i made a lot of custom components to ease the editor-experience for my clients., which i dont have to anymore. so thanks a lot for the work :) |
Glad to hear Repeater is helping. We would add this |
This has been fixed in 4.27.x releases. |
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. |
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:
The text was updated successfully, but these errors were encountered: