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:
Ben Alpert
2015-06-10 15:31:27 -07:00
parent 88042b1b00
commit f073ce2ba7
2 changed files with 6 additions and 3 deletions
@@ -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':