Fix focus related bug in segmented control

This commit is contained in:
Mattias Granlund 2023-11-26 12:02:08 +01:00
parent 1ff5ef87e9
commit 58e4869998

View File

@ -11,7 +11,7 @@
let indexesIterator = -1;
let segments: SegmentItem[] = [];
let focusedSegmentIndex = writable(selectedIndex);
let focusedSegmentIndex = writable(-1);
let selectedSegmentIndex = writable(selectedIndex);
let length = writable(0);