#35239 closed Bug (duplicate)
FilteredSelectMultiple (filter_horizontal) initial selections reset when refreshing in Firefox
Reported by: | Rachid Mrad | Owned by: | nobody |
---|---|---|---|
Component: | contrib.admin | Version: | 4.2 |
Severity: | Normal | Keywords: | FilteredSelectMultiple, filter_horizontal, Firefox |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
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.
Attachments (1)
Change History (3)
by , 10 months ago
Attachment: | Screenshot 2024-02-15 at 3.36.12 PM.png added |
---|
comment:1 by , 10 months ago
Resolution: | → needsinfo |
---|---|
Status: | new → closed |
comment:2 by , 10 months ago
Resolution: | needsinfo → duplicate |
---|
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.
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!