Skip to content
Snippets Groups Projects
Commit e70d7edf authored by Aya Morisawa's avatar Aya Morisawa Committed by syuilo
Browse files

Fix #5380 (#5381)

parent 71d4d51f
No related branches found
Tags 11.0.0-beta.3
No related merge requests found
......@@ -47,7 +47,8 @@ export default Vue.extend({
data() {
return {
details: null,
detailsTimeoutId: null
detailsTimeoutId: null,
isHovering: false
};
},
computed: {
......@@ -89,9 +90,11 @@ export default Vue.extend({
}
},
onMouseover() {
this.isHovering = true;
this.detailsTimeoutId = setTimeout(this.openDetails, 300);
},
onMouseleave() {
this.isHovering = false;
clearTimeout(this.detailsTimeoutId);
this.closeDetails();
},
......@@ -104,6 +107,7 @@ export default Vue.extend({
.map(x => x.user.username);
this.closeDetails();
if (!this.isHovering) return;
this.details = this.$root.new(XDetails, {
reaction: this.reaction,
users,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment