Skip to content

Commit f9b9dfd

Browse files
committed
fix(Input): check if navigator exist to support SSR
1 parent a9fbaa9 commit f9b9dfd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/input/textarea.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ function clearNextFrameAction(nextFrameId) {
2222

2323
// safari in mac
2424
const isMacSafari =
25-
navigator && navigator.userAgent
25+
typeof navigator !== 'undefined' && navigator && navigator.userAgent
2626
? navigator.userAgent.match(/^((?!chrome|android|windows).)*safari/i)
2727
: false;
2828

0 commit comments

Comments
 (0)