AOSSIE-Org / AOSSIE-Org/EduAid

Feature: Add "Clear input" button for input textarea (with confirmation)

Đang mở
#322 5 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
JavaScript
Star
171
Fork
425
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

## Title
Feature: Add "Clear input" button for input textarea (with confirmation)

## Description
Add a **Clear** button next to the existing **Paste** button to quickly reset the input textarea content. Implement this in **both the web app and the browser extension** for consistent UX.

## Acceptance Criteria
- [ ] Clicking **Clear** empties the textarea.
- [ ] Show a confirmation step (OK to use `confirm()`, a small modal, or a simple inline "Are you sure?") to prevent accidental clears.
- [ ] Must **not** break the existing word count behavior.
- [ ] Implemented in both web and extension for consistency.

## Files / Locations
- `eduaid_web/src/pages/Text_Input.jsx`
- `extension/src/pages/text_input/TextInput.jsx`

## Notes
Keep changes minimal. Avoid unrelated UI refactors or styling changes.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.