Browse Source

fix: direct use "dist/antd" cause server rendering error (#3436)

pull/3440/head
kayw 8 years ago
committed by 偏右
parent
commit
b2734eda66
  1. 2
      components/style/index.tsx

2
components/style/index.tsx

@ -6,7 +6,7 @@ function isFlexSupported(style) {
'MozFlex' in style; 'MozFlex' in style;
} }
if (typeof window !== undefined && window.document && window.document.documentElement) { if (typeof window !== 'undefined' && window.document && window.document.documentElement) {
const { documentElement } = window.document; const { documentElement } = window.document;
const NO_FLEX = 'no-flex'; const NO_FLEX = 'no-flex';

Loading…
Cancel
Save