Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Renaming deprecated function #167

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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