Remove stray call to ReactDOMTextarea.unmountWrapper
ReactDOMInput has this but ReactDOMTextarea doesn't so we shouldn't try to call it.
Ben Alpert committed
Jun 10, 2015 at 15:31 UTC
f073ce2ba7f3740ac4d6ce4266caaaa3179fe449
2 files changed
+6
-3
src/renderers/dom/client/wrappers/__tests__/ReactDOMTextarea-test.js
+6
@@ -251,4 +251,10 @@ describe('ReactDOMTextarea', function() {
251
expect(link.requestChange.mock.calls.length).toBe(1);
252
expect(link.requestChange.mock.calls[0][0]).toEqual('test');
253
});
254
+
255
+ it('should unmount', function() {
256
+ var container = document.createElement('div');
257
+ renderTextarea(<textarea />, container);
258
+ React.unmountComponentAtNode(container);
259
+ });
260
});
src/renderers/dom/shared/ReactDOMComponent.js
-3
@@ -787,9 +787,6 @@ ReactDOMComponent.Mixin = {
787
case 'input':
788
ReactDOMInput.unmountWrapper(this);
789
break;
790
- case 'textarea':
791
- ReactDOMTextarea.unmountWrapper(this);
792
- break;
790
case 'html':
791
case 'head':
792
case 'body':