[PR #31107] fix(search-input): retain focus after clearing input #33090

Closed
opened 2026-02-21 20:52:38 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/langgenius/dify/pull/31107

State: closed
Merged: Yes


Summary

  • Fix focus loss when clicking the clear (x) button in SearchInput component
  • Add inputRef and call focus() after clearing the value

Test plan

  • Click on SearchInput and type some text
  • Click the clear (x) button
  • Verify the input remains focused and cursor is visible

Closes #31106

**Original Pull Request:** https://github.com/langgenius/dify/pull/31107 **State:** closed **Merged:** Yes --- ## Summary - Fix focus loss when clicking the clear (x) button in SearchInput component - Add inputRef and call focus() after clearing the value ## Test plan - [ ] Click on SearchInput and type some text - [ ] Click the clear (x) button - [ ] Verify the input remains focused and cursor is visible Closes #31106
yindo added the pull-request label 2026-02-21 20:52:38 -05:00
yindo closed this issue 2026-02-21 20:52:38 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#33090