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

BelongsTo or Select with searchable() does not work in action modal #6401

Closed
jonnigg opened this issue May 22, 2024 · 2 comments
Closed

BelongsTo or Select with searchable() does not work in action modal #6401

jonnigg opened this issue May 22, 2024 · 2 comments
Labels
needs more info More information is required

Comments

@jonnigg
Copy link

jonnigg commented May 22, 2024

  • Laravel Version: ^8.78
  • Nova Version: 4.33.3
  • PHP Version: 8.0
  • Database Driver & Version: Postgres
  • Operating System and Version: MacOS 13.4.1
  • Browser type and version: Brave version 1.65.130 using Chromium 124.0.6367.159

Description:

When using BelongsTo::make()->searchable() or Select::make()->searchable() in the fields function of an action the searchable input box is will not become focusable (won't allow text input). As a result. The search functionality does not work. The searchable() functionality does work in normal forms however. It seems that this issue is limited to being used in the modal that is presented when running actions. I have attached a few screenshots below.

FWIW - It almost feels like a z-index issue such that the input is behind some other element.

I am using the following:
Nova: v4.33.3 (Silver Surfer)

Screenshots:
image

image

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

Created simple action and added copy pasted the Select example code form the documentation but added searchable()

@crynobone
Copy link
Member

Are you sure you are running on the latest assets? Please run php artisan nova:publish and test again.

@crynobone crynobone added the needs more info More information is required label May 23, 2024
@jonnigg
Copy link
Author

jonnigg commented May 23, 2024

I didn't even think about doing a republish. I just assumed that initial publish was enough. I apologize for not doing this before posting this issue. I will close this as fixed. Thank you so much for that @crynobone

@jonnigg jonnigg closed this as completed May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs more info More information is required
Projects
None yet
Development

No branches or pull requests

2 participants