mirror of
https://github.com/koel/koel.git
synced 2026-04-26 09:15:59 +03:00
[GH-ISSUE #305] Clear search query when user toggles off the search box on mobile #223
Labels
No labels
Authentication
Dependencies
Documentation
Feature Request
Flac
Help Wanted
Installation/Setup
Integration
Mobile
PR Welcome
Pending Release
Performance
Playlist
S3
Search
Sync
[Pri] Low
[Pri] Normal
[Status] Keep Open
[Status] Needs Author Reply
[Status] Needs Review
[Status] Stale
[Status] Will Implement
[Type] Blessed
[Type] Bug
[Type] Duplicate
[Type] Enhancement
[Type] Help Request
[Type] Question
[Type] Task
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/koel-koel#223
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @phanan on GitHub (Apr 17, 2016).
Original GitHub issue: https://github.com/koel/koel/issues/305
Originally assigned to: @phanan on GitHub.
Problem
On a mobile device, the search box is designed to be hidden most of the time. As the song lists are filtered by the search query, this behavior may lead to the wrong idea of how many songs the current song list contains. Visual example:
User seaches for a song. The song list is filtered to show only matching results:

He clicks the search icon to hide the search form. As the search query is still kept albeit hidden, the list remains at the same state.

This can be quite misleading, as the user can now at first glance be tricked into thinking that "All Songs" has only one item, or lost at how to find the rest.
Solution:
On mobile, clear the search query when the user hides the search box.
@BernardGoldberger commented on GitHub (Sep 6, 2016):
Ping @phanan
@phanan commented on GitHub (Sep 25, 2016):
After some consideration, I've come to believe this should be left in user's land, i.e. Koel shouldn't try to act smart. If the user's confused, it's their mistake.