From 8705c86cff1926733c48e378e21b64fcbfd7f386 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ilkka=20P=C3=A4ttikangas?= Date: Thu, 23 Nov 2023 14:14:17 +0200 Subject: [PATCH] Merge pull request #805 from vrk-kpa/hotfix/loadingspinner-ref [Hotfix] LoadingSpinner ref --- src/core/LoadingSpinner/LoadingSpinner.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/LoadingSpinner/LoadingSpinner.tsx b/src/core/LoadingSpinner/LoadingSpinner.tsx index 066dc40fb..b50bb3269 100644 --- a/src/core/LoadingSpinner/LoadingSpinner.tsx +++ b/src/core/LoadingSpinner/LoadingSpinner.tsx @@ -71,6 +71,7 @@ class BaseLoadingSpinner extends Component { variant = 'normal', status = 'loading', style, + forwardedRef, ...rest } = this.props; const [marginProps, passProps] = separateMarginProps(rest); @@ -87,6 +88,7 @@ class BaseLoadingSpinner extends Component { })} as="section" id={id} + ref={forwardedRef} {...passProps} style={{ ...marginStyle, ...style }} >