diff --git a/.eslintrc.js b/.eslintrc.js index 4efaf3108..1f61cf194 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -26,6 +26,7 @@ module.exports = { }, ignorePatterns: ['**/__tests__/**/*'], rules: { + 'jsx-a11y/no-onchange': 0, 'no-unused-vars': [ 'error', { diff --git a/src/components/Tabs/Bar.js b/src/components/Tabs/Bar.js index a5f82fb21..1f2a9f001 100644 --- a/src/components/Tabs/Bar.js +++ b/src/components/Tabs/Bar.js @@ -9,8 +9,7 @@ const MobileTabControl = ({ children }) => { const [currentTab, setCurrentTab] = useTabs(); // eslint gets angry about using props from React.Children.map - // eslint also suggests using onBlur vs onChange, but i think we want the immediate change. - /* eslint-disable react/prop-types, jsx-a11y/no-onchange */ + /* eslint-disable react/prop-types */ return ( - /* eslint-enable react/prop-types, jsx-a11y/no-onchange */ ); + /* eslint-enable react/prop-types */ }; MobileTabControl.propTypes = {