Skip to content

Commit 3355fab

Browse files
committed
Initialize hintUnmounted state according the hint visibility
1 parent 49955ad commit 3355fab

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)