outl1ne / nova-detached-filters

This Laravel Nova package allows you to detach filters from the filter dropdown and show them on a card
MIT License
61 stars 21 forks source link

Filterable Searchable Select Field doesnt work properly #35

Closed professor93 closed 9 months ago

professor93 commented 1 year ago

Description:

I encountered an issue in Laravel Nova when using a filterable searchable select field inside the DetachedFilters card. When attempting to use the search field, it opens for a brief moment and then immediately closes, preventing me from typing anything.

Steps to Reproduce:

Add support for filterable searchable select field inside the DetachedFilters card.
Click on the search field to begin typing.

Expected Behavior:

The search field should remain open, allowing the user to type and search within the select field.

Actual Behavior:

The search field briefly opens and then immediately closes, making it impossible to type or search.

Environment:

Laravel version: v9.52.5 
Laravel Nova version: 4.23.0
Nova Detached Filters version: 2.0.2
Browser: Google Chrome 111.0.5563.146
Operating System: MacOs, Ventura 13.3
ObaydaAlesawi commented 1 year ago

@professor93 Did you got any solution here?

KasparRosin commented 10 months ago

It works with our searchable select. https://github.com/outl1ne/nova-multiselect-filter

Is it a nova filter that you are using or a 3rd party one?

chiragsenjaliya commented 9 months ago

@KasparRosin what about BelongsTo relation filter provided by nova using BelongsTo::make('Relation Field, 'relation_field', 'App\Nova\Relation')->sortable()->nullable()->searchable()->viewable(false)->filterable();

this one is not showing inside the detached filter card.

KasparRosin commented 9 months ago

@chiragsenjaliya The current solution is the create your own Filter Select and include it in the detached filters card.

I'll close this issue, as it seems to be not a bug, rather unimplemented feature. View the discussion at #42