mirror of
				https://github.com/Alamantus/Lexiconga.git
				synced 2025-11-04 02:07:05 +01:00 
			
		
		
		
	Fix WordForm and SearchBox not being able to enter words
This commit is contained in:
		
							parent
							
								
									f296dacdad
								
							
						
					
					
						commit
						4c03b9c164
					
				
					 2 changed files with 3 additions and 3 deletions
				
			
		| 
						 | 
					@ -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…
	
	Add table
		
		Reference in a new issue