Skip to content

Commit

Permalink
fix: bug with clearing search in mobile view
Browse files Browse the repository at this point in the history
  • Loading branch information
Cayla Hamann committed Jun 26, 2020
1 parent 18ec5a9 commit cd71fb2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/MobileHeader.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ const MobileHeader = ({ className, isOpen, toggle }) => {
<SearchInput
className={styles.searchInput}
placeholder="Search developer docs"
onClear={() => setSearchTerm('')}
onChange={(e) => setSearchTerm(e.target.value)}
value={searchTerm}
/>
Expand Down

0 comments on commit cd71fb2

Please sign in to comment.