Skip to content

Commit 4b427bd

Browse files
atifielderhuan-msftnicholasrice
authored
fix: update horizontal overflow to properly initialize flipper hydration (#2801)
* fix: update horizontal overflow to properly initialize flipper hydration (#2801) * Horizontal Overflow do not call handleOverflowChange during ie11 hydration. Adding the callback on componentDidMount to ensure it is always called during hydration. * Ran prettier formatting Co-authored-by: Eric Huang <[email protected]> Co-authored-by: Nicholas Rice <[email protected]>
1 parent d37b3da commit 4b427bd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/fast-components-react-base/src/horizontal-overflow/horizontal-overflow.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,10 @@ class HorizontalOverflow extends Foundation<
202202
});
203203
}
204204

205+
if (this.overflow !== this.isOverflow()) {
206+
this.handleOverflowChange();
207+
}
208+
205209
if (canUseDOM() && this.horizontalOverflowItemsRef.current) {
206210
this.updateDirection();
207211
this.lastRecordedScroll = this.getScrollPosition();

0 commit comments

Comments
 (0)