Fix WordForm and SearchBox not being able to enter words
This commit is contained in:
parent
f296dacdad
commit
4c03b9c164
|
@ -111,7 +111,7 @@ export class SearchBox extends Component {
|
||||||
this.searchBox = input;
|
this.searchBox = input;
|
||||||
}}
|
}}
|
||||||
value={ this.state.searchTerm }
|
value={ this.state.searchTerm }
|
||||||
onChange={(event) => {
|
onInput={(event) => {
|
||||||
this.setState({ searchTerm: event.target.value.trim() }, () => this.search());
|
this.setState({ searchTerm: event.target.value.trim() }, () => this.search());
|
||||||
}} />
|
}} />
|
||||||
<span className='icon is-small is-left'>
|
<span className='icon is-small is-left'>
|
||||||
|
|
|
@ -109,7 +109,7 @@ export class WordForm extends Component {
|
||||||
<input className={ `input${(!this.state.nameIsValid) ? ' is-danger' : ''}` }
|
<input className={ `input${(!this.state.nameIsValid) ? ' is-danger' : ''}` }
|
||||||
type='text' placeholder='Required'
|
type='text' placeholder='Required'
|
||||||
value={ this.state.wordName }
|
value={ this.state.wordName }
|
||||||
onChange={(event) => {
|
onInput={(event) => {
|
||||||
this.setState({ wordName: event.target.value });
|
this.setState({ wordName: event.target.value });
|
||||||
}} />
|
}} />
|
||||||
{(!this.state.nameIsValid)
|
{(!this.state.nameIsValid)
|
||||||
|
@ -149,7 +149,7 @@ export class WordForm extends Component {
|
||||||
<input className={ `input${(!this.state.definitionIsValid) ? ' is-danger' : ''}` }
|
<input className={ `input${(!this.state.definitionIsValid) ? ' is-danger' : ''}` }
|
||||||
type='text' placeholder='Equivalent word(s)'
|
type='text' placeholder='Equivalent word(s)'
|
||||||
value={ this.state.wordDefinition }
|
value={ this.state.wordDefinition }
|
||||||
onChange={(event) => {
|
onInput={(event) => {
|
||||||
this.setState({ wordDefinition: event.target.value })
|
this.setState({ wordDefinition: event.target.value })
|
||||||
}} />
|
}} />
|
||||||
{(!this.state.definitionIsValid)
|
{(!this.state.definitionIsValid)
|
||||||
|
|
Loading…
Reference in New Issue