diff --git a/packages/material-ui/src/InputBase/InputBase.js b/packages/material-ui/src/InputBase/InputBase.js index b17880153d3e4c..2c2fa0a006f5ae 100644 --- a/packages/material-ui/src/InputBase/InputBase.js +++ b/packages/material-ui/src/InputBase/InputBase.js @@ -172,14 +172,7 @@ class InputBase extends React.Component { } } - componentDidUpdate(prevProps) { - // Book keep the focused state. - if (!prevProps.disabled && this.props.disabled) { - const { muiFormControl } = this.props; - if (muiFormControl && muiFormControl.onBlur) { - muiFormControl.onBlur(); - } - } + componentDidUpdate() { if (this.isControlled) { this.checkDirty(this.props); } // else performed in the onChange diff --git a/packages/material-ui/src/InputBase/InputBase.test.js b/packages/material-ui/src/InputBase/InputBase.test.js index 6153cdc9e42231..320e32e53b132e 100644 --- a/packages/material-ui/src/InputBase/InputBase.test.js +++ b/packages/material-ui/src/InputBase/InputBase.test.js @@ -75,8 +75,7 @@ describe('', () => { }); it('should reset the focused state', () => { - const handleBlur = spy(); - const wrapper = mount(); + const wrapper = mount(); // We simulate a focused input that is getting disabled. setState(wrapper, { focused: true, @@ -85,7 +84,6 @@ describe('', () => { disabled: true, }); assert.strictEqual(wrapper.find('InputBase').state().focused, false); - assert.strictEqual(handleBlur.callCount, 1); }); // IE 11 bug