From eec2a2684dcb8e7e9748f26fc45578ea69f3c53b Mon Sep 17 00:00:00 2001 From: Derek Jensen Date: Wed, 23 May 2018 09:37:01 -0700 Subject: [PATCH] fix(textbox): remove clear div --- src/prefabs/textbox/textbox.tsx | 29 +++++++++++------------------ 1 file changed, 11 insertions(+), 18 deletions(-) diff --git a/src/prefabs/textbox/textbox.tsx b/src/prefabs/textbox/textbox.tsx index 8f72239..8133ba1 100644 --- a/src/prefabs/textbox/textbox.tsx +++ b/src/prefabs/textbox/textbox.tsx @@ -108,16 +108,6 @@ export class TextBox extends PreactControl<{ tabIndex={0} value={this.state.inputValue} /> -
- x -
{!this.hasSubmit && !this.cost ? [] : null} @@ -148,14 +138,17 @@ export class TextBox extends PreactControl<{ }; protected handleChange = (evt: any) => { - this.setState({ - ...this.state, - inputValue: evt.target.value, - }, () => { - if (!this.multiline && !this.hasSubmit && !this.cost) { - this.control.giveInput({ event: 'change', value: this.state.inputValue }); - } - }); + this.setState( + { + ...this.state, + inputValue: evt.target.value, + }, + () => { + if (!this.multiline && !this.hasSubmit && !this.cost) { + this.control.giveInput({ event: 'change', value: this.state.inputValue }); + } + }, + ); }; protected keypress = (evt: KeyboardEvent) => {