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
I'm attempting to clear the selected options for a field using $('#id_field').val(null).trigger('change') as directed in the select2 docs. However, when I do, the options are never removed from the UI. Is this expected behavior?
Thanks!
Steps to Reproduce
attempt to clear a django-select2 field with $('#id_field').val(null).trigger('change') via browser console.
Expected Behavior
all options are removed from UI and select2 state.
The text was updated successfully, but these errors were encountered:
Bug Description
Hello,
I'm attempting to clear the selected options for a field using
$('#id_field').val(null).trigger('change')
as directed in the select2 docs. However, when I do, the options are never removed from the UI. Is this expected behavior?Thanks!
Steps to Reproduce
attempt to clear a django-select2 field with
$('#id_field').val(null).trigger('change')
via browser console.Expected Behavior
all options are removed from UI and select2 state.
The text was updated successfully, but these errors were encountered: