Skip to content

Commit 4980494

Browse files
committed
Delay unfix state change
1 parent 32579b6 commit 4980494

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/index.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,10 @@ export default class Headroom extends Component {
303303
translateY: 0,
304304
className: 'headroom headroom--unfixed headroom-disable-animation',
305305
animation: false,
306-
state: 'unfixed',
306+
}, () => {
307+
setTimeout(() => {
308+
this.setState({ state: 'unfixed' })
309+
}, 0)
307310
})
308311
}
309312

0 commit comments

Comments
 (0)