laravel / nova-issues

554 stars 35 forks source link

Searchable BelongsTo field fetches all available resources when cleared by the user, partially defeating the purpose of being "searchable" #6454

Closed k8n closed 2 weeks ago

k8n commented 1 month ago

Description:

See clearResourceSelection() of fields/Form/BelongsToField.vue. getAvailableResources() is called irrespective of whether the field isSearchable() (whereas initializeComponent() actually checks that condition first).

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

crynobone commented 1 month ago

Unable to reproduce the issue, 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)

k8n commented 1 month ago

Here you go: https://github.com/k8n/issues-6454/blob/master/app/Nova/TeamUser.php#L44

Screenshot 2024-07-08 at 22 41 04 Screenshot 2024-07-08 at 22 41 31
github-actions[bot] commented 1 week 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.