Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3357575
D6043.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
926 B
Referenced Files
None
Subscribers
None
D6043.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D6043: [web] Keyboard support for typeahead [3/13] - Renamed animation state
Attached
Detach File
Event Timeline
Log In to Comment