diff --git a/web/app/components/input/input.jsx b/web/app/components/input/input.jsx index 0228ea40..cbce5e05 100644 --- a/web/app/components/input/input.jsx +++ b/web/app/components/input/input.jsx @@ -46,6 +46,13 @@ export default class Input extends Component { }); } + shouldComponentUpdate(nextProps) { + return nextProps.id !== this.props.id + || nextProps.pid !== this.props.pid + || nextProps.value !== this.props.value + || nextProps.errorMessage !== this.props.errorMessage; + } + onKeyDown(e) { // send on cmd+enter / ctrl+enter if (e.keyCode === 13 && (e.metaKey || e.ctrlKey)) {