From 8ba175adc48b2007e5435519d3e0c62fd884cc78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Kucharczyk?= Date: Sun, 21 Jun 2026 18:04:46 +0200 Subject: [PATCH] fix(date-range-filter): drop text selection on arrow navigation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Arrow Left/Right called target.select(), which painted the segment with the browser's default text-selection color instead of the brand focus background used everywhere else — so a part looked pink when reached by arrow keys but blue when clicked or tabbed into. The select() was redundant (the digit handler already restarts a full part on the next keypress), so removing it makes the focus highlight consistent. Co-Authored-By: Claude Opus 4.8 (1M context) --- ts/elements/date-range-picker.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/ts/elements/date-range-picker.ts b/ts/elements/date-range-picker.ts index 6b0ce95..8f2390d 100644 --- a/ts/elements/date-range-picker.ts +++ b/ts/elements/date-range-picker.ts @@ -290,7 +290,6 @@ function initField(picker: HTMLElement, calendarState: CalendarState): void { const target = segments[segmentIndex + step]; if (target) { target.focus(); - target.select(); } return; }