You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
using a AutoCompleteSelect Widget, i encounter a problem when deleting a selected item.
Open form with field (Charfield, default='', blank=True) and save form without changing anything. The field is empty and stays empty in the database
Select a item with AutoCompleteSelect and save form. The item is now saved to the database.
Try to delete the selection. In my case, the input field shown to the user is empty, but in the send POST data the old item id is not deleted. After saving form, the item is still in database.
How is it possible to delete a item to get an empty field again?
The text was updated successfully, but these errors were encountered:
after a click outside the input, the post data is correct. So it looks like only a js trigger does not work as expected. With allow_new there is also no problem.
After some research it looks like the change event is the right one for older browsers, new browsers support input to trigger all changes made by the user, for example paste.
Would be nice to have best modern browser support by django selectable.
Hallo,
using a AutoCompleteSelect Widget, i encounter a problem when deleting a selected item.
Open form with field (Charfield, default='', blank=True) and save form without changing anything. The field is empty and stays empty in the database
Select a item with AutoCompleteSelect and save form. The item is now saved to the database.
Try to delete the selection. In my case, the input field shown to the user is empty, but in the send POST data the old item id is not deleted. After saving form, the item is still in database.
How is it possible to delete a item to get an empty field again?
The text was updated successfully, but these errors were encountered: