Skip to content

Commit

Permalink
fix(mediastreamselector): didn't emit new values
Browse files Browse the repository at this point in the history
  • Loading branch information
ThibaultNocchi committed Feb 6, 2023
1 parent 4fa3111 commit b9936b4
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion frontend/src/components/Item/MediaStreamSelector.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit b9936b4

Please sign in to comment.