filament icon indicating copy to clipboard operation
filament copied to clipboard

Searchable select gets 'meta' as search input when you unfocus the page

Open Danoctum opened this issue 6 months ago • 0 comments

Package

filament/filament

Package Version

v3.2.92

Laravel Version

v10.48.15

Livewire Version

v3.5.2

PHP Version

PHP 8.2.19

Problem description

When I make a component like this: Forms\Components\Select::make('test') ->searchable() ->options(['test' => 'test'])

And when I open the dropdown, type nothing, and go to another application (using alt + tab or cmd + tab for example) the search fields gets 'meta' as an input.

Expected behavior

I'd expect the searchfield to stay empty.

Steps to reproduce

  • Create a form with the select component that is searchable in a modem. (it's important that it's the first focused item you get when you hit tab)
  • Hit tab + command
  • See that the dropdown opens and the search field has 'meta' in it.
  • Doing it again and again will keep appending 'meta' image

Reproduction repository (issue will be closed if this is not valid)

https://github.com/filamentphp/demo

Relevant log output

No response

Donate 💰 to fund this issue

  • You can donate funding to this issue. We receive the money once the issue is completed & confirmed by you.
  • 100% of the funding will be distributed between the Filament core team to run all aspects of the project.
  • Thank you in advance for helping us make maintenance sustainable!
Fund with Polar

Danoctum avatar Aug 16 '24 12:08 Danoctum