Skip to content

Commit 94416ae

Browse files
authored
fix: attach ui5-webcomponents event handlers before browser paint (#7218)
Fixes #7217
1 parent ed4b0f0 commit 94416ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/base/src/wrapper/withWebComponent.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ export const withWebComponent = <Props extends Record<string, any>, RefType = Ui
190190
});
191191
}, [Component, ...propsToApply]);
192192

193-
useEffect(() => {
193+
useIsomorphicLayoutEffect(() => {
194194
setAttachEvents(true);
195195
}, []);
196196

0 commit comments

Comments
 (0)