@codemirror/autocomplete 6.3.1 → 6.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## 6.3.2 (2022-11-15)
2
+
3
+ ### Bug fixes
4
+
5
+ Fix a regression that could cause the completion dialog to stick around when it should be hidden.
6
+
1
7
  ## 6.3.1 (2022-11-14)
2
8
 
3
9
  ### Bug fixes
package/dist/index.cjs CHANGED
@@ -712,6 +712,8 @@ class CompletionState {
712
712
  if (tr.selection || active.some(a => a.hasResult() && tr.changes.touchesRange(a.from, a.to)) ||
713
713
  !sameResults(active, this.active))
714
714
  open = CompletionDialog.build(active, state, this.id, this.open, conf);
715
+ else if (open && open.disabled && !active.some(a => a.state == 1 /* State.Pending */))
716
+ open = null;
715
717
  else if (open && tr.docChanged)
716
718
  open = open.map(tr.changes);
717
719
  if (!open && active.every(a => a.state != 1 /* State.Pending */) && active.some(a => a.hasResult()))
package/dist/index.js CHANGED
@@ -708,6 +708,8 @@ class CompletionState {
708
708
  if (tr.selection || active.some(a => a.hasResult() && tr.changes.touchesRange(a.from, a.to)) ||
709
709
  !sameResults(active, this.active))
710
710
  open = CompletionDialog.build(active, state, this.id, this.open, conf);
711
+ else if (open && open.disabled && !active.some(a => a.state == 1 /* State.Pending */))
712
+ open = null;
711
713
  else if (open && tr.docChanged)
712
714
  open = open.map(tr.changes);
713
715
  if (!open && active.every(a => a.state != 1 /* State.Pending */) && active.some(a => a.hasResult()))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codemirror/autocomplete",
3
- "version": "6.3.1",
3
+ "version": "6.3.2",
4
4
  "description": "Autocompletion for the CodeMirror code editor",
5
5
  "scripts": {
6
6
  "test": "cm-runtests",