Closed seanmturley closed 1 year ago
Done.
A summary of the work:
<input type="reset">
as a clear button.handleInputReset
function to clear the searchTerm
and to refocus the search <input>
.input
to the form
so it could contain the new button.searchTerm
.
Description
There should be a button the clear the search input so the user can start afresh.
Approach
Unfortunately Firefox doesn't support the "default" approach of simply adding
type="search"
to the input. This necessitates the addition of an<input type="reset">
to act as a button.This will require some HTML restructuring and restyling. A decent approximation of how to approach this is the Reddit search bar.