nova-medialibrary-field icon indicating copy to clipboard operation
nova-medialibrary-field copied to clipboard

Reuse of `->sortable()` creates broken sorting on index

Open sebsel opened this issue 4 years ago • 1 comments

According to the documentation, we can do ->sortable() on the field, to make the Media draggable / sortable while editing.

https://github.com/dmitrybubyakin/nova-medialibrary-field#sorting

By reusing this property, the Field is marked as sortable, thus Laravel Nova will render arrows on the index page.

image-9

Clicking on one of those will give an error, because the column product_images does not exists in my database (nor does it have to).

Maybe it's better to not reuse this standard Nova property? Nova has no wrapper-function around it, so you can't really disable these arrows.

sebsel avatar Sep 03 '21 08:09 sebsel

@sebsel Hi. Yes, going to rename this. Thanks.

dmitrybubyakin avatar Sep 03 '21 09:09 dmitrybubyakin