Remove a couple of old frontend comments

This commit is contained in:
Keavon Chambers
2026-09-06 23:19:06 -07:00
parent 5612b63633
commit fb35dadf1b
2 changed files with 0 additions and 6 deletions

View File

@@ -416,11 +416,6 @@
export function setHighlighted(newHighlight: MenuListEntry | undefined) { export function setHighlighted(newHighlight: MenuListEntry | undefined) {
highlighted = newHighlight; highlighted = newHighlight;
// Interactive menus should keep the active entry the same as the highlighted one
// if (interactive && newHighlight?.value !== activeEntry?.value && newHighlight) {
// dispatch("activeEntry", newHighlight);
// }
// Scroll into view // Scroll into view
let container = scroller?.div?.(); let container = scroller?.div?.();
if (!container || !highlighted) return; if (!container || !highlighted) return;

View File

@@ -74,7 +74,6 @@
if (activeEntrySkipWatcher) { if (activeEntrySkipWatcher) {
activeEntrySkipWatcher = false; activeEntrySkipWatcher = false;
} else if (activeEntry !== DASH_ENTRY) { } else if (activeEntry !== DASH_ENTRY) {
// We need to set to the initial value first to track a right history step, as if we hover in initial selection.
if (initialSelectedIndex !== undefined) dispatch("hoverInEntry", initialSelectedIndex); if (initialSelectedIndex !== undefined) dispatch("hoverInEntry", initialSelectedIndex);
const index = entries.flat().findIndex((entry) => entry.value === activeEntry.value); const index = entries.flat().findIndex((entry) => entry.value === activeEntry.value);
if (index !== -1) { if (index !== -1) {