#35239: FilteredSelectMultiple (filter_horizontal) initial selections reset when
refreshing in Firefox
-------------------------------------+-------------------------------------
               Reporter:             |          Owner:  nobody
  rachidatecs                        |
                   Type:  Bug        |         Status:  new
              Component:             |        Version:  4.2
  contrib.admin                      |       Keywords:
               Severity:  Normal     |  FilteredSelectMultiple,
           Triage Stage:             |  filter_horizontal, Firefox
  Unreviewed                         |      Has patch:  0
    Needs documentation:  0          |    Needs tests:  0
Patch needs improvement:  0          |  Easy pickings:  0
                  UI/UX:  0          |
-------------------------------------+-------------------------------------
 I put a breakpoint on SelectBox.js line 72 and narrowed it down to if
 option.selected (l 75) returning False when it should return True in
 Firefox.

 I overrode the FilteredSelectMultiple template and added
 autocomplete="off" to the available select to fix the bug in my project,
 credit to [this post]https://stackoverflow.com/questions/66728451/html-
 select-not-showing-selected-option-after-refresh-in-firefox on Stack
 Overflow.
-- 
Ticket URL: <https://code.djangoproject.com/ticket/35239>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018dc746c6a9-2a373c7d-f313-451f-af82-39f690a8a724-000000%40eu-central-1.amazonses.com.

Reply via email to