-
Notifications
You must be signed in to change notification settings - Fork 34
Open
Description
- Laravel Version: 12.39.0
- Nova Version: 5.7.6
- PHP Version: 8.4.15
- Database Driver & Version: sqlite
- Operating System and Version: macos
- Browser type and version: safari
- Reproduction Repository: https://github.com/kichetof/nova-repeater-suggestion-issue
Description:
Suggestions in Text field failed when you have fields with same name.
It should'nt happens, expect when you have some repeaters where attributes could have same name.
Issue come from vendor/laravel/nova/resources/js/mixins/FieldSuggestions.js:9
suggestionsId() {
return `${this.fieldAttribute}-list`
},As suggestionsId use fieldAttribute, we encounter an id duplication.
Detailed steps to reproduce the issue on a fresh Nova installation:
- Click in User
Namefield, show suggestions (Name 1, Name 2)
- add any Repeater (ex. Office Item), click in Office Item Repeater
Nameshow suggestion (Office 1, Office 2)
- add a new repeater or click in User
Nameand show suggestions (Office 1 instead of Name 1, ... or Desk 1, ...)
Another point to enhance is the width of the dropdown menu of the repeater selector, w-fit or something else:
Thansk a lot :)
Metadata
Metadata
Assignees
Labels
No labels