How to set default values (to persist) on repeater

Hi, I'm building a table to specify the opening hours of businesses. So, I want to populate a repeater with weekdays. Currently I'm doing this:
->default([
[
'day' => 'monday',
'start' => null,
'end' => null,
],
[ // ...
->default([
[
'day' => 'monday',
'start' => null,
'end' => null,
],
[ // ...
Which it display them fine, but when I want to persist the data -> the values of the 'day' key (that is being handled on a Select field) are not being passed (remain null). Only when I manually clic on the select and change it -> they are included in the request. How to include the values by default? Thanks in advance.
1 Reply
kennyhorna
kennyhorna11mo ago
For some reason, now it's working as it should. So, the default behavior works as expected.