mirror of
https://github.com/revoltchat/revite.git
synced 2024-11-25 08:30:58 -05:00
fix(messaging): prevent message overlay from sticking after finishing edit
This commit is contained in:
parent
bb5f940ad1
commit
e67f8f95cd
1 changed files with 2 additions and 1 deletions
|
@ -3,7 +3,7 @@ import { Message as MessageObject } from "revolt.js/dist/maps/Messages";
|
|||
|
||||
import { attachContextMenu } from "preact-context-menu";
|
||||
import { memo } from "preact/compat";
|
||||
import { useState } from "preact/hooks";
|
||||
import { useEffect, useState } from "preact/hooks";
|
||||
|
||||
import { internalEmit } from "../../../lib/eventEmitter";
|
||||
import { isTouchscreenDevice } from "../../../lib/isTouchscreenDevice";
|
||||
|
@ -89,6 +89,7 @@ const Message = observer(
|
|||
|
||||
// ! FIXME(?): animate on hover
|
||||
const [mouseHovering, setAnimate] = useState(false);
|
||||
useEffect(() => setAnimate(false), [replacement]);
|
||||
|
||||
return (
|
||||
<div id={message._id}>
|
||||
|
|
Loading…
Reference in a new issue