Open Dysey opened 2 months ago
Hi, Please check Vue.js docs about reactivity.
The expression of checked that you write will only be evaluated once when MenuData is created, and it will be fixed to the value at the moment of creation and will not change.
You can wrapper your expression with computed, so it will re-evaluate when its reactive dependencies have changed.
checked: computed(() => issue.value.members?.find(m => m.id === member.id) ? true : false),
Hi,
I used the context menu to add member of an issue when onClick but the checked value of this item is not updated.
I clicked on it, the issue is updated because we can see the number 1 on issue behind but member item is not checked on menu