Skip to content

Bug 2079453 - Upgrade devbridge-autocomplete to 2.0.1 and fix autocomplete dropdown reopening after the field loses focus - #2775

Merged
dklawren merged 3 commits into
masterfrom
bug-2079453
Oct 8, 2026
Merged

dklawren merged 3 commits into
masterfrom
bug-2079453

Conversation

@dklawren

@dklawren dklawren commented Oct 7, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

…plete dropdown reopening after the field loses focus

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

The major dependency upgrade needs browser-level compatibility validation across autocomplete consumers.

0 open findings

What changed in this PR

Upgrades autocomplete to 2.0.1 and adapts the user and product/component widgets to prevent delayed results from reopening dropdowns after focus is lost.

Changes:

  • Updates the dependency and lockfile.
  • Defers focus checks until after suggestions render.
  • Adds regression tests for focused and blurred inputs.
File Description
qa/​t/​2_test_autocomplete.t Tests delayed lookups with and without focus.
package.json Upgrades devbridge-autocomplete to 2.0.1.
package-lock.json Locks the upgrade and updates DOMPurify.
js/​field.js Defers hiding unfocused user suggestions.
extensions/​ProdCompSearch/​web/​js/​prod_comp_search.js Defers hiding unfocused product/component suggestions.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@dklawren
dklawren requested review from Xzzz, cgsheeh and kyoshino October 7, 2026 20:32
Comment thread package.json
@@ -11,7 +11,7 @@
"//": "The generated files are not committed; the Docker assets stage builds them from this lockfile. Dependabot proposes upgrades and CI tests them with no regeneration step needed; treat majors (jquery 4.x, mermaid 11.x, devbridge 2.x) as manual, tested reviews. A bump now moves a library's stylesheet along with its script, so review upgrades for visual changes too. bpopup is not published to npm and remains vendored under js/jquery/plugins/bPopup/.",

@Xzzz Xzzz Oct 8, 2026 •

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The treat majors (..., devbridge 2.x) as manual is out of date now ;)
+ same wordings in README.rst (line 343) and .github/dependabot.yml (line 26)

@Xzzz Xzzz left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes are safe, lgtm. Just one small note inline about the stale "2.x" mentions.

@kyoshino kyoshino left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can’t reproduce the issue with the prod comp search. I’m not sure if the change to prod_comp_search.js is necessary, but I don’t think it will cause any problems 🙂

Comment thread extensions/ProdCompSearch/web/js/prod_comp_search.js Outdated
Comment thread js/field.js Outdated
@dklawren
dklawren merged commit db16d7e into master Oct 8, 2026
8 checks passed
@dklawren
dklawren deleted the bug-2079453 branch October 8, 2026 18:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants