mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Remove stray call to ReactDOMTextarea.unmountWrapper
ReactDOMInput has this but ReactDOMTextarea doesn't so we shouldn't try to call it.
This commit is contained in:
@@ -251,4 +251,10 @@ describe('ReactDOMTextarea', function() {
|
||||
expect(link.requestChange.mock.calls.length).toBe(1);
|
||||
expect(link.requestChange.mock.calls[0][0]).toEqual('test');
|
||||
});
|
||||
|
||||
it('should unmount', function() {
|
||||
var container = document.createElement('div');
|
||||
renderTextarea(<textarea />, container);
|
||||
React.unmountComponentAtNode(container);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -787,9 +787,6 @@ ReactDOMComponent.Mixin = {
|
||||
case 'input':
|
||||
ReactDOMInput.unmountWrapper(this);
|
||||
break;
|
||||
case 'textarea':
|
||||
ReactDOMTextarea.unmountWrapper(this);
|
||||
break;
|
||||
case 'html':
|
||||
case 'head':
|
||||
case 'body':
|
||||
|
||||
Reference in New Issue
Block a user