Fix missing users in userlist after removing searchinput

Because the "Username" components still had the same ":key" vue tried to in-place update them. This doesn't quite work for objects (in this case "user" or "user.original"). Thus we change the key for the search so that it actually inits a new component and thus evaluates its content correctly.
This commit is contained in:
Nachtalb 2021-05-09 23:32:11 +02:00
parent 7b1cb88658
commit 042cfb7582
No known key found for this signature in database
GPG Key ID: E48DF13C07055D92

View File

@ -28,7 +28,7 @@
<template v-if="userSearchInput.length > 0">
<Username
v-for="user in users"
:key="user.original.nick"
:key="user.original.nick + '-search'"
:on-hover="hoverUser"
:active="user.original === activeUser"
:user="user.original"