Skip to content

Commit cefec66

Browse files
committed
reset the hint position when target layout changes
1 parent c08a459 commit cefec66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/hint/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ class Hint extends BaseComponent {
124124
};
125125

126126
onTargetLayout = ({nativeEvent: {layout}}) => {
127-
if (!this.state.targetLayout) {
127+
if (!_.isEqual(this.state.targetLayout, layout)) {
128128
this.setState({
129129
targetLayout: layout,
130130
});

0 commit comments

Comments
 (0)