Skip to content

Commit 3f3582a

Browse files
committed
fix: motion end should also clean up record
1 parent 6723250 commit 3f3582a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Popup.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,10 @@ class Popup extends Component<PopupProps, PopupState> {
225225

226226
onMotionEnd = () => {
227227
const { visible } = this.props;
228-
this.setState({ status: visible ? 'AfterMotion' : 'stable' });
228+
this.setState({
229+
status: visible ? 'AfterMotion' : 'stable',
230+
inMotion: false,
231+
});
229232
};
230233

231234
setStateOnNextFrame = (state: Partial<PopupState>) => {

0 commit comments

Comments
 (0)