Kirby now throws a depreciation warning about passing an empty string as the value, and requires a null to properly decide to omit the attribute.
Currently the best option is to use $form->old('field') ?: null (as I do now), but I think being more explicit about the default value would be better.
Allows you to define your own fallback value if the field wasn't found in the flash, like so:
the reason for this: if you're building your input programmatically, like so:
Kirby now throws a depreciation warning about passing an empty string as the value, and requires a
null
to properly decide to omit the attribute.Currently the best option is to use
$form->old('field') ?: null
(as I do now), but I think being more explicit about the default value would be better.