(event: React.ChangeEvent<HTMLInputElement>)
| 60 | |
| 61 | // Updates the inputValue state as the user types |
| 62 | const handleChange = (event: React.ChangeEvent<HTMLInputElement>) => { |
| 63 | setInputValue(event.target.value) |
| 64 | } |
| 65 | // Adds the keyword when the input loses focus, if there's a keyword to add |
| 66 | const handleBlur = (event: React.FocusEvent<HTMLInputElement>) => { |
| 67 | if (inputValue.trim() !== '' && event.relatedTarget?.tagName !== 'BUTTON') { |
nothing calls this directly
no outgoing calls
no test coverage detected