Page MenuHomePhabricator

D6043.diff
No OneTemporary

D6043.diff

diff --git a/web/chat/typeahead-tooltip.react.js b/web/chat/typeahead-tooltip.react.js
--- a/web/chat/typeahead-tooltip.react.js
+++ b/web/chat/typeahead-tooltip.react.js
@@ -35,13 +35,15 @@
viewerID,
matchedStrings,
} = props;
- const [isVisible, setIsVisible] = React.useState(false);
+ const [isVisibleForAnimation, setIsVisibleForAnimation] = React.useState(
+ false,
+ );
React.useEffect(() => {
- setIsVisible(true);
+ setIsVisibleForAnimation(true);
- return () => setIsVisible(false);
- }, [setIsVisible]);
+ return () => setIsVisibleForAnimation(false);
+ }, []);
const {
entireText: matchedText,
@@ -110,8 +112,8 @@
}
const overlayClasses = classNames(css.suggestionsContainer, {
- [css.notVisible]: !isVisible,
- [css.visible]: isVisible,
+ [css.notVisible]: !isVisibleForAnimation,
+ [css.visible]: isVisibleForAnimation,
});
return (

File Metadata

Mime Type
text/plain
Expires
Mon, Nov 25, 12:21 AM (21 h, 25 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2577786
Default Alt Text
D6043.diff (926 B)

Event Timeline