From 7ad9db3eb3e68523fc7923e9286776127dd0e7f0 Mon Sep 17 00:00:00 2001 From: KgTong Date: Wed, 28 Oct 2015 19:39:36 +0800 Subject: [PATCH] fix IE version logic --- components/spin/index.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/spin/index.jsx b/components/spin/index.jsx index f6383b93e1..523f94bfc1 100644 --- a/components/spin/index.jsx +++ b/components/spin/index.jsx @@ -17,7 +17,8 @@ const AntSpin = React.createClass({ getIEVersion() { let ua = navigator.userAgent.toLowerCase(); - return ua.match(/msie ([\d.]+)/)[1]; + let s = ua.match(/msie ([\d.]+)/); + return s ? s[1] : false; }, isNestedPattern() {