fix(ui): keep the voice highlight on layer rows

Toggle the count-line modifier with a directive that leaves other classes alone, so a re-render no longer clears gev-voice-focus.
This commit is contained in:
Sameh Khamis committed 2026-10-30 23:56:20 -07:00
1 parent 231ac4b67b
commit dc9d200725
4 files changed
+65 -4

No files matched your search

+5 -4
View File
@@ -2,6 +2,7 @@
import RailChips from '../rail/RailChips.vue';
import RailRowList from '../rail/RailRowList.vue';
import RowText from './RowText.vue';
import { vClassToggle } from '../rail/classToggle.js';
// The data layer rows under their group headings. LayerPanel presents every
// value; clicks reach it with the layer id, and it re-reads the live
@@ -21,10 +22,10 @@ defineProps({
}}</h3
><div
v-else
:class="[
'data-toggle-row',
{ 'data-toggle-row--count-line': item.count?.countLine },
]"
class="data-toggle-row"
v-class-toggle="{
'data-toggle-row--count-line': item.count?.countLine,
}"
:data-layer-id="item.id"
:data-layer-name="item.englishName"
><div class="data-toggle-top"