🐛 unable to clear selected options in UI #323
Unanswered
tpeacock19
asked this question in
Q&A
Replies: 1 comment
-
Hi there 👋, Thanks for reaching out. You will need to make sure you Django field is has the I hope this answer is helpful. Don't hesitate to ask more questions. Best |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
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.
Beta Was this translation helpful? Give feedback.
All reactions