Skip to content

Commit

Permalink
fix(Input): IE10 can't find getDerivedStateFromProps
Browse files Browse the repository at this point in the history
  • Loading branch information
youluna committed May 22, 2020
1 parent 248f7dc commit 8ef2c4c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/input/input.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ function preventDefault(e) {

/** Input */
export default class Input extends Base {
static getDerivedStateFromProps = Base.getDerivedStateFromProps;
static propTypes = {
...Base.propTypes,
/**
Expand Down
3 changes: 2 additions & 1 deletion src/input/password.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React from 'react';
import PropTypes from 'prop-types';

import ConfigProvider from '../config-provider';
import Input from './input';
import Icon from '../icon/index';

Expand All @@ -14,6 +13,8 @@ export default class Password extends Input {
htmlType: 'password',
};

static getDerivedStateFromProps = Input.getDerivedStateFromProps;

static propTypes = {
...Input.propTypes,
/**
Expand Down
1 change: 1 addition & 0 deletions src/input/textarea.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ const hiddenStyle = {
* @order 2
*/
export default class TextArea extends Base {
static getDerivedStateFromProps = Base.getDerivedStateFromProps;
static propTypes = {
...Base.propTypes,
/**
Expand Down

0 comments on commit 8ef2c4c

Please sign in to comment.