json icon indicating copy to clipboard operation
json copied to clipboard

BooleanGroup Field is not loading values correctly

Open rhino-corey opened this issue 4 years ago • 0 comments

Laravel 8+ Nova 3.25

\Armincms\Json\Json::make('options', [
    BooleanGroup::make('Options')
    ->options( $this->getOptions() )
])->nullable()

This code will produce a JSON structure like so on save:

{"options":"{\"1\":false,\"2\":true,\"3\":true,\"4\":false,\"5\":false,\"6\":false,\"7\":false,\"8\":false,\"9\":false,\"10\":false}"}

However, when returning to the edit view, all values are selected as seen below:

image

rhino-corey avatar May 29 '21 04:05 rhino-corey