Reset active user when leaving user list with mouse
This commit is contained in:
parent
b02c3b6c17
commit
40bf9ee8ba
@ -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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user