From 4db8d8f68d06e5ec93ed1022d3f50b757550b4d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pablo=20Fern=C3=A1ndez?= Date: Wed, 21 Jun 2017 13:26:42 +0200 Subject: [PATCH 1/2] Update TaggedInput.jsx Avoids React Warning: [Component] is changing an uncontrolled input of type text to be controlled. Input elements should not switch from uncontrolled to controlled (or vice versa). Decide between using a controlled or uncontrolled input element for the lifetime of the component. --- src/TaggedInput.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TaggedInput.jsx b/src/TaggedInput.jsx index b92d7ac..0602fe5 100644 --- a/src/TaggedInput.jsx +++ b/src/TaggedInput.jsx @@ -68,7 +68,7 @@ module.exports = React.createClass({ getInitialState: function () { return { tags: (this.props.tags || []).slice(0), - currentInput: null + currentInput: '' }; }, From c6889b29e6bc0cf3ab1ec75d0fbbe83feba2ce5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pablo=20Fern=C3=A1ndez?= Date: Wed, 21 Jun 2017 13:27:24 +0200 Subject: [PATCH 2/2] Update TaggedInput.js Avoids React Warning: [Component] is changing an uncontrolled input of type text to be controlled. Input elements should not switch from uncontrolled to controlled (or vice versa). Decide between using a controlled or uncontrolled input element for the lifetime of the component. --- dist/TaggedInput.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/TaggedInput.js b/dist/TaggedInput.js index 7001e7d..9065a7e 100644 --- a/dist/TaggedInput.js +++ b/dist/TaggedInput.js @@ -68,7 +68,7 @@ module.exports = React.createClass({ getInitialState: function () { return { tags: (this.props.tags || []).slice(0), - currentInput: null + currentInput: '' }; },