orchidsoftware / platform

Orchid is a @laravel package that allows for rapid application development of back-office applications, admin/user panels, and dashboards.
https://orchid.software
MIT License
4.26k stars 631 forks source link

Cannot delete a selected item in the Relation field #2840

Open EizEddin opened 3 weeks ago

EizEddin commented 3 weeks ago

Bug Description:

When I use a Relation field to search for and select an item, once an item is selected, I can no longer delete that item, or the text in that field. I press the delete/backspace key, but nothing happens.

Steps to reproduce the behavior:

  1. You can use the example field "Select for Eloquent model" which comes with Orchid
  2. Select a user from the list
  3. Try pressing the backspace key to delete the selected text, but it doesn't work.

Expected behavior:

When pressing the backspace key, it supposed to delete the selected text in that field, so you can search for another item if you want.

Screenshots

Screenshot 2024-06-04 at 19 57 54

Desktop (please complete the following information):

Server (please complete the following information):