triolla-io / nova-swatches

🎨 A beautiful color picking field for Laravel Nova
22 stars 5 forks source link

Color not showing on index, detail or edit #5

Open bernhardh opened 3 years ago

bernhardh commented 3 years ago

Hello,

I am using your package like this:

Swatches::make('Color')
    ->colors('text-advanced')
    ->withProps([
        'show-fallback' => true,
        'fallback-type' => 'input',
        'popover-to' => 'left',
        // More options at https://saintplay.github.io/vue-swatches/api/props.html
    ]),

On create, if looks like its working. Starting with this:

image

and after I select the color it is shown correct:

image

But on index or detail, the color is not showing:

image

or detail:

image

When clicking on the boxes, the correct color is copied to clipboard.

On edit, I don't see the field box, but I can click on it and after select the color and box is shown.

https://user-images.githubusercontent.com/642292/126958372-855f3116-d645-43be-98a5-a98f76bf3c71.mp4