Skip to content
This repository was archived by the owner on Jan 6, 2026. It is now read-only.

Commit 4019220

Browse files
authored
Merge pull request #592 from Shopify/autobind-resize-listener
Add autobind to resize listener
2 parents a6020f2 + b8a3b9c commit 4019220

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/components/Scrollable/Scrollable.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ export default class Scrollable extends React.Component<Props, State> {
107107
});
108108
}
109109

110+
@autobind
110111
@debounce(50, { trailing: true })
111112
private handleResize() {
112113
this.handleScroll();

0 commit comments

Comments
 (0)