diff --git a/RELEASE-NOTES.md b/RELEASE-NOTES.md index b7d0d8a27..e1a0b2ac6 100644 --- a/RELEASE-NOTES.md +++ b/RELEASE-NOTES.md @@ -18,6 +18,7 @@ - Fixed spacing on unsynced notes warning message [#2797](https://github.com/automattic/simplenote-electron/pull/2797) - Fixed cut off issue for dialogs when the window is too small [#2815](https://github.com/automattic/simplenote-electron/pull/2815), [#2834](https://github.com/automattic/simplenote-electron/pull/2834), [#2863](https://github.com/automattic/simplenote-electron/pull/2863) - Fixed unnecessary separators in the Electron builds File and Edit menus when not yet logged in (props @Klauswk) [#2724](https://github.com/automattic/simplenote-electron/pull/2724) +- Fixed the clear search button so it does not appear unless there is a search term to clear [#2862](https://github.com/automattic/simplenote-electron/pull/2862) ## [v2.9.0] diff --git a/lib/search-field/index.tsx b/lib/search-field/index.tsx index 1fb10aed5..e0945c100 100644 --- a/lib/search-field/index.tsx +++ b/lib/search-field/index.tsx @@ -95,14 +95,15 @@ export class SearchField extends Component { value={searchQuery} spellCheck={false} /> - + {hasQuery && ( + + )} ); }