@codemirror/autocomplete
Advanced tools
Comparing version 0.19.10 to 0.19.11
@@ -0,1 +1,7 @@ | ||
## 0.19.11 (2022-01-11) | ||
### Bug fixes | ||
Fix a bug that caused page up/down to only move the selection by two options in the completion tooltip. | ||
## 0.19.10 (2022-01-05) | ||
@@ -2,0 +8,0 @@ |
@@ -782,3 +782,3 @@ import { Annotation, Facet, combineConfig, StateEffect, StateField, Prec, EditorSelection, Text } from '@codemirror/state'; | ||
if (by == "page" && (tooltip = view.dom.querySelector(".cm-tooltip-autocomplete"))) | ||
step = Math.max(2, Math.floor(tooltip.offsetHeight / tooltip.firstChild.offsetHeight)); | ||
step = Math.max(2, Math.floor(tooltip.offsetHeight / tooltip.querySelector("li").offsetHeight) - 1); | ||
let selected = cState.open.selected + step * (forward ? 1 : -1), { length } = cState.open.options; | ||
@@ -997,3 +997,3 @@ if (selected < 0) | ||
"&light .cm-tooltip-autocomplete ul li[aria-selected]": { | ||
background: "#39e", | ||
background: "#17c", | ||
color: "white", | ||
@@ -1000,0 +1000,0 @@ }, |
{ | ||
"name": "@codemirror/autocomplete", | ||
"version": "0.19.10", | ||
"version": "0.19.11", | ||
"description": "Autocompletion for the CodeMirror code editor", | ||
@@ -5,0 +5,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
139979