Dynamic datalist doesn't fully update unless backspace pressed
Categories
(Toolkit :: Form Manager, defect, P2)
Tracking
()
People
(Reporter: u587052, Assigned: m_kato)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
Comment 2•7 years ago
|
||
Comment 3•7 years ago
|
||
Comment 7•6 years ago
|
||
This is because we use the cached result for filtering if the results for what the user typed is now a subset of what the user had previously typed. We could disable this caching for datalist searches I guess.
Comment 8•6 years ago
|
||
setting the autocomplete
attribute to off
does not reliably fix the behavior in my case.
Looks like https://bugzilla.mozilla.org/show_bug.cgi?id=1438275 is a duplicate of this bug
Comment 10•6 years ago
|
||
And one more similar: https://bugzilla.mozilla.org/show_bug.cgi?id=1528845
Comment 12•6 years ago
|
||
For people who do use the autocomplete=off
workaround, note that it (currently) breaks the datalist on Firefox for Android. I ended up using JS to set autocomplete=off
only if navigator.userAgent
indicates that the browser is desktop Firefox.
Comment 13•6 years ago
|
||
This workaround works for me: after change datalist dynamically with JavaScript, set input autocomplete to "off" and immediately change it back to "on".
Comment 14•5 years ago
|
||
I have this issue, too.
- Go to https://codesandbox.io/s/happy-merkle-mncjs
- Type "foobar@" in the email box.
It show dropdown in Chrome but not in Firefox until you press backspace.
Comment 15•5 years ago
|
||
Correct previous message:
- Go to https://codesandbox.io/s/optimistic-borg-pq1vx
- Type "foobar@" in the email box.
Updated•5 years ago
|
Comment 17•5 years ago
|
||
Running into the same problem as this bug - it's P2; any chance someone will be looking at this soon? Disabling caching should not be too hard, right?
Updated•5 years ago
|
Assignee | ||
Comment 18•4 years ago
|
||
Even if <datalist> is dynamically changed, autocomplete controller still uses
previous search result. If changed, we have to ignore previous result that may
be invalid.
Also, even if <datalist> is changed, we have to keep selected index (Bug
595069), so we cannot use ResetInternalState at this situation. It resets
selected index.
Updated•4 years ago
|
Comment 19•4 years ago
|
||
Makoto, I see you have a patch here and we have duplicates? Any news on this bug?
Assignee | ||
Comment 20•4 years ago
|
||
(In reply to Pascal Chevrel:pascalc (pto until November 2) from comment #19)
Makoto, I see you have a patch here and we have duplicates? Any news on this bug?
Actually, I am busy for other bugs. No update for this. I need a lot of changes to review this again according to review comment.
Comment 21•3 years ago
|
||
Comment 22•3 years ago
|
||
bugherder |
Updated•3 years ago
|
Comment 23•3 years ago
|
||
This is a longstanding bug. No need to uplift the fix to Beta 101.
Description
•