Reset active user when leaving user list with mouse

This commit is contained in:
Pavel Djundik 2019-01-15 11:29:18 +02:00
parent b02c3b6c17
commit 40bf9ee8ba

View File

@ -1,7 +1,8 @@
<template> <template>
<aside <aside
ref="userlist" ref="userlist"
class="userlist"> class="userlist"
@mouseleave="removeHoverUser">
<div class="count"> <div class="count">
<input <input
ref="input" ref="input"
@ -142,6 +143,9 @@ export default {
hoverUser(user) { hoverUser(user) {
this.activeUser = user; this.activeUser = user;
}, },
removeHoverUser() {
this.activeUser = null;
},
navigateUserList(direction) { navigateUserList(direction) {
let users = this.channel.users; let users = this.channel.users;