We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ebfa59d commit 13e67ffCopy full SHA for 13e67ff
packages/material-ui/src/Tabs/Tabs.js
@@ -1,3 +1,5 @@
1
+/* eslint-disable no-restricted-globals */
2
+
3
import React from 'react';
4
import PropTypes from 'prop-types';
5
import warning from 'warning';
@@ -218,8 +220,8 @@ class Tabs extends React.Component {
218
220
if (
219
221
(indicatorStyle.left !== this.state.indicatorStyle.left ||
222
indicatorStyle.width !== this.state.indicatorStyle.width) &&
- !Number.isNaN(indicatorStyle.left) &&
- !Number.isNaN(indicatorStyle.width)
223
+ !isNaN(indicatorStyle.left) &&
224
+ !isNaN(indicatorStyle.width)
225
) {
226
this.setState({ indicatorStyle });
227
}
0 commit comments