Add feedback when search clicked with empty input
Previously clicking Search with no input silently did nothing. Now shows "Enter a song name to search." and focuses the input. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
+5
-1
@@ -292,7 +292,11 @@ class MotifApp {
|
|||||||
|
|
||||||
private async handleSearch(): Promise<void> {
|
private async handleSearch(): Promise<void> {
|
||||||
const songName = this.songInput.value.trim();
|
const songName = this.songInput.value.trim();
|
||||||
if (!songName) return;
|
if (!songName) {
|
||||||
|
this.updateStatus('Enter a song name to search.');
|
||||||
|
this.songInput.focus();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// Stop any playing Motif audio
|
// Stop any playing Motif audio
|
||||||
this.handleMotifStop();
|
this.handleMotifStop();
|
||||||
|
|||||||
Reference in New Issue
Block a user