[Django] #35239: FilteredSelectMultiple (filter_horizontal) initial selections reset when refreshing in Firefox

12 views
Skip to first unread message

Django

unread,
Feb 20, 2024, 11:08:46 AM2/20/24
to django-...@googlegroups.com
#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.

Django

unread,
Feb 20, 2024, 11:09:36 AM2/20/24
to django-...@googlegroups.com
#35239: FilteredSelectMultiple (filter_horizontal) initial selections reset when
refreshing in Firefox
-------------------------------------+-------------------------------------
Reporter: rachidatecs | Owner: nobody
Type: Bug | Status: new
Component: contrib.admin | Version: 4.2
Severity: Normal | Resolution:
Keywords: | Triage Stage:
FilteredSelectMultiple, | Unreviewed
filter_horizontal, Firefox |
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by rachidatecs):

* Attachment "Screenshot 2024-02-15 at 3.36.12 PM.png" added.

Django

unread,
Feb 20, 2024, 1:37:53 PM2/20/24
to django-...@googlegroups.com
#35239: FilteredSelectMultiple (filter_horizontal) initial selections reset when
refreshing in Firefox
-------------------------------------+-------------------------------------
Reporter: Rachid Mrad | Owner: nobody
Type: Bug | Status: closed
Component: contrib.admin | Version: 4.2
Severity: Normal | Resolution: needsinfo
Keywords: | Triage Stage:
FilteredSelectMultiple, | Unreviewed
filter_horizontal, Firefox |
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Natalia Bidart):

* resolution: => needsinfo
* status: new => closed

Comment:

Hello Rachid Mrad, thank you for your report!

Could you please provide more details about the exact issue you are
having? I read the ticket title, and the links, but it's unclear to me how
to try to reproduce this myself. Please provide, ideally, either detailed
steps to reproduce or a sample/minimal test project so we re-open with
more concrete information.

Also, please note that Django 4.2 is not receiving bug fixes anymore, so
before re-opening, please check if this is solved in the `main` branch of
Django.

Thank you!
--
Ticket URL: <https://code.djangoproject.com/ticket/35239#comment:1>

Django

unread,
Feb 20, 2024, 8:56:20 PM2/20/24
to django-...@googlegroups.com
#35239: FilteredSelectMultiple (filter_horizontal) initial selections reset when
refreshing in Firefox
-------------------------------------+-------------------------------------
Reporter: Rachid Mrad | Owner: nobody
Type: Bug | Status: closed
Component: contrib.admin | Version: 4.2
Severity: Normal | Resolution: duplicate
Keywords: | Triage Stage:
FilteredSelectMultiple, | Unreviewed
filter_horizontal, Firefox |
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Tim Graham):

* resolution: needsinfo => duplicate

Comment:

This looks like #33386 but I cannot reproduce with Firefox 122.0.1 on
Ubuntu. We could reopen that ticket if the issue is the same and we have
more details about how to reproduce it, although the browser might be at
fault rather than Django.
--
Ticket URL: <https://code.djangoproject.com/ticket/35239#comment:2>
Reply all
Reply to author
Forward
0 new messages