Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Add clear button (✕) to search input 🔍

Closed Beginner friendly
#616 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

A pull request for this has already been merged.

  • #618 by @tu-lasizzzz — merged

Assessment

Difficulty
1/5
Estimated time
1-3 hours
Newbie friendliness
88/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Tech stack
javascript, react, tailwindcss
Domain
frontend

Research direction

Start in client/src/pages/Dashboard.jsx and locate the search input bound to searchQuery. Add a clear control that appears when the query has a value and clears it when clicked, following the example in the issue. Confirm the control appears only for nonempty searches and that clicking it clears the search.

Written by the indexing model from the issue text.

Description

good first issue

Add clear button (✕) to search input 🔍

File: client/src/pages/Dashboard.jsx

When search has text there's no quick
way to clear it 💀 have to backspace fr!!

Fix: show clear button when search has value:

setSearchQuery(e.target.value)} placeholder="Search tasks..." className="..." /> {searchQuery && ( setSearchQuery('')} className="absolute right-2 top-1/2 -translate-y-1/2 text-[#555] hover:text-[#aaa] transition text-xs"> ✕ )}

~8 lines! No backend needed 🎯

Dominant language
JavaScript
Stars
39
Forks
105
Avg merge
1d 12h
Merged PRs (30d)
40

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from anoopcodehack/DevBoard

All issues in anoopcodehack/DevBoard

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.