File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ module.exports = {
26
26
} ,
27
27
ignorePatterns : [ '**/__tests__/**/*' ] ,
28
28
rules : {
29
+ 'jsx-a11y/no-onchange' : 0 ,
29
30
'no-unused-vars' : [
30
31
'error' ,
31
32
{
Original file line number Diff line number Diff line change @@ -9,8 +9,7 @@ const MobileTabControl = ({ children }) => {
9
9
const [ currentTab , setCurrentTab ] = useTabs ( ) ;
10
10
11
11
// eslint gets angry about using props from React.Children.map
12
- // eslint also suggests using onBlur vs onChange, but i think we want the immediate change.
13
- /* eslint-disable react/prop-types, jsx-a11y/no-onchange */
12
+ /* eslint-disable react/prop-types */
14
13
return (
15
14
< select
16
15
onChange = { ( e ) => setCurrentTab ( e . target . value ) }
@@ -36,8 +35,8 @@ const MobileTabControl = ({ children }) => {
36
35
</ option >
37
36
) ) }
38
37
</ select >
39
- /* eslint-enable react/prop-types, jsx-a11y/no-onchange */
40
38
) ;
39
+ /* eslint-enable react/prop-types */
41
40
} ;
42
41
43
42
MobileTabControl . propTypes = {
You can’t perform that action at this time.
0 commit comments