Skip to content

Commit 735c45a

Browse files
authored
Initialize hintUnmounted state according the hint visibility (#1443)
Build did not send the message to GitHub, it finished successfully.
1 parent 165faee commit 735c45a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/hint/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ class Hint extends Component<HintProps, HintState> {
179179
state = {
180180
targetLayoutInWindow: undefined,
181181
targetLayout: this.props.targetFrame,
182-
hintUnmounted: false
182+
hintUnmounted: !this.props.visible
183183
};
184184

185185
visibleAnimated = new Animated.Value(Number(!!this.props.visible));

0 commit comments

Comments
 (0)