diff --git a/src/components/Input.jsx b/src/components/Input.jsx index 3d503bf..77bd84d 100644 --- a/src/components/Input.jsx +++ b/src/components/Input.jsx @@ -49,7 +49,7 @@ export class Input extends React.Component { {this.props.name} {this.showHelperLink()} - + this.props.onKeyDown(event)} value={this.state.value} /> ); } diff --git a/src/components/TextArea.jsx b/src/components/TextArea.jsx index beb5340..3c564e5 100644 --- a/src/components/TextArea.jsx +++ b/src/components/TextArea.jsx @@ -12,11 +12,7 @@ export class TextArea extends Input { this.handleMaximizeClick = this.handleMaximizeClick.bind(this); } - handleMaximizeClick(event) { - this.showFullScreenTextbox(); - } - - showFullScreenTextbox() { + handleMaximizeClick() { var sourceTextboxElement = document.getElementById(this.props.id); var targetTextboxElement = document.getElementById("fullScreenTextbox"); document.getElementById("fullScreenTextboxLabel").innerHTML = this.props.name; @@ -40,7 +36,7 @@ export class TextArea extends Input { action={() => this.handleMaximizeClick()} label='Maximize' /> -