Closed b-ssr closed 11 months ago
When I set 0 (zero) as one of the option keys (as shown in the example below) and select the corresponding option to update the resource, it fails to update. The option with the key 0 (zero) is ignored, and the first option is used instead.
Radio::make('Status', 'status')->options(['1' => 'Show', '0' => 'Hide']);
Is this the expected behavior or is it a bug?
Sorry. Overlooked and just realised it myself. But it won't be until this weekend.
https://github.com/Muetze42/nova-radio-field/releases
When I set 0 (zero) as one of the option keys (as shown in the example below) and select the corresponding option to update the resource, it fails to update. The option with the key 0 (zero) is ignored, and the first option is used instead.
Radio::make('Status', 'status')->options(['1' => 'Show', '0' => 'Hide']);
Is this the expected behavior or is it a bug?