From b9936b4f742aa2e5f6d29223ea56a3e72425ebc4 Mon Sep 17 00:00:00 2001 From: Thibault Nocchi <1619359+ThibaultNocchi@users.noreply.github.com> Date: Thu, 2 Feb 2023 11:46:54 +0100 Subject: [PATCH] fix(mediastreamselector): didn't emit new values --- frontend/src/components/Item/MediaStreamSelector.vue | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/Item/MediaStreamSelector.vue b/frontend/src/components/Item/MediaStreamSelector.vue index 759c6727927..2c07a694dbc 100644 --- a/frontend/src/components/Item/MediaStreamSelector.vue +++ b/frontend/src/components/Item/MediaStreamSelector.vue @@ -152,7 +152,13 @@ if ( trackIndex.value = selectItems.value[0].value; } -emits('input', trackIndex.value); +watch( + trackIndex, + (newValue) => { + emits('input', newValue); + }, + { immediate: true } +); watch( () => props.defaultStreamIndex,