You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: overflowManager should always dispatch initial state (#27756)
* fix: overflowManager should always dispatch initial state
Fixes#27656 which was caused by a priority queue edge case.
On initial mount the resize observer will always run. If there is
already overflow then the tops of the visibility queues will be
different from the initial state (all items are considered visible by
default).
In the cause where there is no overflow initially the queue tops will
not change, which does not trigger a dispatch to the react bindings so
the `useIsOverflowItemVisible` hook will always return `false` until
overflow occurs.
The fix is quite simple: set the initial value of flag `forceDispatch`
to be `true` which will always trigger a dispatch for initial mount.
* changefile
0 commit comments