mirror of
https://github.com/thelounge/thelounge
synced 2024-11-22 03:53:08 +00:00
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:
parent
7b1cb88658
commit
042cfb7582
1 changed files with 1 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue