Skip to content

Commit

Permalink
fix(Overlay): filter unused props 'shouldUpdatePosition', close #3812 (
Browse files Browse the repository at this point in the history
…#4277)

Co-authored-by: 林俊 <[email protected]>
  • Loading branch information
jun599 and 林俊 authored Mar 9, 2023
1 parent bb37360 commit 8131740
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/overlay/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ class Popup extends React.Component {
delete others.needAdjust;
}

if ('shouldUpdatePosition' in others) {
delete others.shouldUpdatePosition;
}

return <Popup2 {...others} />;
} else {
return <Popup1 {...others} ref={this.saveRef} />;
Expand Down

0 comments on commit 8131740

Please sign in to comment.