Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Search not working on a BelongsTo relationship in an Action #6305

Closed
aa146214 opened this issue Mar 25, 2024 · 4 comments
Closed

Search not working on a BelongsTo relationship in an Action #6305

aa146214 opened this issue Mar 25, 2024 · 4 comments

Comments

@aa146214
Copy link

  • Laravel Version: 10
  • Nova Version: 4.33.0
  • PHP Version: 8.2.10
  • Database Driver & Version: Mysql 5.8
  • Operating System and Version: 8.0.31-0ubuntu0.20.04.2
  • Browser type and version: Latest on all browsers tested
  • Reproduction Repository: https://github.com/###/###

Description:

screenshot (2)

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

public function fields(NovaRequest $request): array {
return [
BelongsTo::make('Class', 'programme', Programme::class)
->required()
->rules('required')
->searchable()
]
}
etc

If I remove ->searchable() then it works, however this is not usable for us.

Because there may be hundreds/thousands of programmes.

We can't include them all in a dropdown list, hence search.

This was working on a previous Nova version 4.31, updated and now not working

@aa146214
Copy link
Author

It started happening on exactly Nova 4.32.7

@Arturas0
Copy link

Issue for for bug was created 2 weeks ago: #6276. Looks like fix should arrive in next release.

@marijoo
Copy link

marijoo commented Mar 26, 2024

It started happening on exactly Nova 4.32.7

It started with 4.32.16 – I guess with this commit:

  • Fix SearchInput backdrop z-index issue when using action modals.

Downgrading to 4.32.15 works.

@crynobone
Copy link
Member

Duplicate of #6276 and should be fixed in 4.33.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants