laravel / nova-issues

556 stars 34 forks source link

Dragging a file can cause Select ->searchable() to show options #5804

Closed Samuele-Mori closed 1 year ago

Samuele-Mori commented 1 year ago

Description:

After selecting an option if i drag a file, with no other clicks, my searchable Select shows the options. This prevents the file from being uploaded. Without ->searchable() I don't have this issue. This also happens using the example in the documentation.

My code is pretty basic, it's just a searchable select.

 public function fields(Request $request)
    {
        return [
            Select::make('Size')->searchable()->options([
                'S' => 'Small',
                'M' => 'Medium',
                'L' => 'Large',
            ])->displayUsingLabels(),

            Select::make('Size no searchable')->options([
                'S' => 'Small',
                'M' => 'Medium',
                'L' => 'Large',
            ])->displayUsingLabels(),

            // Test, unnecessary
            File::make(__('File'), 'path'),
        ];
    }

select

Detailed steps to reproduce the issue on a fresh Nova installation:

To reproduce this issue you just need a Select with ->searchable(). I hope this is enough.

crynobone commented 1 year ago

Please provide full reproducing repository based on fresh installation as suggested in the bug report template (or you can refer to https://github.com/nova-issues for example)

Samuele-Mori commented 1 year ago

I'm sorry for the lack of information.

Detailed steps to reproduce the issue on a fresh Nova installation:

To reproduce the code I used issue-5605 as referecence.

image

select-issue5605

github-actions[bot] commented 1 year ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.