Skip to content

Commit

Permalink
Renaming deprecated function
Browse files Browse the repository at this point in the history
  • Loading branch information
ranneyd committed Sep 23, 2019
1 parent 05b0f86 commit 2220aa6
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 13 deletions.
4 changes: 2 additions & 2 deletions dist/react-input-autosize.es.js
Original file line number Diff line number Diff line change
Expand Up @@ -282,8 +282,8 @@ var AutosizeInput = function (_Component) {
this.updateInputWidth();
}
}, {
key: 'componentWillReceiveProps',
value: function componentWillReceiveProps(nextProps) {
key: 'UNSAFE_componentWillReceiveProps',
value: function UNSAFE_componentWillReceiveProps(nextProps) {
var id = nextProps.id;

if (id !== this.props.id) {
Expand Down
4 changes: 2 additions & 2 deletions dist/react-input-autosize.js
Original file line number Diff line number Diff line change
Expand Up @@ -288,8 +288,8 @@ var AutosizeInput = function (_Component) {
this.updateInputWidth();
}
}, {
key: 'componentWillReceiveProps',
value: function componentWillReceiveProps(nextProps) {
key: 'UNSAFE_componentWillReceiveProps',
value: function UNSAFE_componentWillReceiveProps(nextProps) {
var id = nextProps.id;

if (id !== this.props.id) {
Expand Down
2 changes: 1 addition & 1 deletion dist/react-input-autosize.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 11 additions & 3 deletions examples/dist/app.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion examples/dist/common.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/dist/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!DOCTYPE html> <head> <title>React-Autosize-Input Example</title> <link rel=stylesheet href=example.css> </head> <body> <div class=container> <h1>React Autosize Input</h1> <h2><a href=http://github.com/JedWatson/react-input-autosize>View project on GitHub</a></h2> <form><div id=app></div></form> <div class=hint> Type in the text fields above to test the auto-size input. </div> <div class=footer> Copyright &copy; Jed Watson 2018. MIT Licensed. </div> </div> <script src=common.js></script> <script src=app.js></script> </body>
<!doctype html> <head> <title>React-Autosize-Input Example</title> <link rel=stylesheet href=example.css> </head> <body> <div class=container> <h1>React Autosize Input</h1> <h2><a href=http://github.com/JedWatson/react-input-autosize>View project on GitHub</a></h2> <form><div id=app></div></form> <div class=hint> Type in the text fields above to test the auto-size input. </div> <div class=footer> Copyright &copy; Jed Watson 2018. MIT Licensed. </div> </div> <script src=common.js></script> <script src=app.js></script> </body>
4 changes: 2 additions & 2 deletions lib/AutosizeInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ var AutosizeInput = function (_Component) {
this.updateInputWidth();
}
}, {
key: 'componentWillReceiveProps',
value: function componentWillReceiveProps(nextProps) {
key: 'UNSAFE_componentWillReceiveProps',
value: function UNSAFE_componentWillReceiveProps(nextProps) {
var id = nextProps.id;

if (id !== this.props.id) {
Expand Down
2 changes: 1 addition & 1 deletion src/AutosizeInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class AutosizeInput extends Component {
this.copyInputStyles();
this.updateInputWidth();
}
componentWillReceiveProps (nextProps) {
UNSAFE_componentWillReceiveProps (nextProps) {
const { id } = nextProps;
if (id !== this.props.id) {
this.setState({ inputId: id || generateId() });
Expand Down

0 comments on commit 2220aa6

Please sign in to comment.