diff options
Diffstat (limited to 'packages/forms/src/select/index.tsx')
-rw-r--r-- | packages/forms/src/select/index.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/forms/src/select/index.tsx b/packages/forms/src/select/index.tsx index ef3e70ddb..d7479f63e 100644 --- a/packages/forms/src/select/index.tsx +++ b/packages/forms/src/select/index.tsx | |||
@@ -49,7 +49,7 @@ interface IState { | |||
49 | let popupTransition: string = 'none'; | 49 | let popupTransition: string = 'none'; |
50 | let toggleTransition: string = 'none'; | 50 | let toggleTransition: string = 'none'; |
51 | 51 | ||
52 | if (window.matchMedia('(prefers-reduced-motion: no-preference)')) { | 52 | if (window && window.matchMedia('(prefers-reduced-motion: no-preference)')) { |
53 | popupTransition = 'all 0.3s'; | 53 | popupTransition = 'all 0.3s'; |
54 | toggleTransition = 'transform 0.3s'; | 54 | toggleTransition = 'transform 0.3s'; |
55 | } | 55 | } |