Skip to content

Commit c688172

Browse files
committed
#74 immediately update list-mode-switch state when updated
(instead of waiting for event completion)
1 parent 631f181 commit c688172

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mobile/src/components/ui/ListModeSwitch.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@
2828
function updateSelectedModeTo(updatedModeId: string) {
2929
const previousModeId = selectedModeRef.value;
3030
selectedModeRef.value = updatedModeId;
31-
$emits('mode-updated', updatedModeId, previousModeId);
31+
// Deferring emit so that list mode switch state immediately updates
32+
setTimeout(() => $emits('mode-updated', updatedModeId, previousModeId), 50);
3233
}
3334
</script>
3435

0 commit comments

Comments
 (0)