[MGNLUI-299] If you move the focus away from an empty search box, switch to the default view Created: 30/Nov/12  Updated: 11/Feb/13  Resolved: 07/Jan/13

Status: Closed
Project: Magnolia UI
Component/s: None
Affects Version/s: None
Fix Version/s: 5.0

Type: Bug Priority: Neutral
Reporter: Andreas Weder Assignee: Mikaël Geljić
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File Bildschirmfoto 2012-11-30 um 15.34.47.png    
Issue Links:
dependency
depends upon MGNLUI-298 As a user I can search in different v... Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:

 Description   

If the search box is empty and you click outside of it to remove the focus away from it, this exits search. What happens currently, though, is that the search box becomes gray, but the view below remains. What should happen instead, though, is that we switch to the default view (e.g. the tree view in Pages).

Note that this issue doesn't need fixing, if we implement the new way that search works - by just applying a filter on the existing set of items shown by a view. In this case, we for one never leave the view we previously where and two, by just emptying the box, we'll show all elements again, which is exactly what is required to end search.



 Comments   
Comment by Andreas Weder [ 30/Nov/12 ]

Only do implement MGNLUI-299, if new search is not on the horizon.

Comment by Andreas Weder [ 30/Nov/12 ]

Lowering the priority as its unclear if this is worth fixing, given that we want to change search anyway.

Comment by Espen Jervidalo [ 10/Dec/12 ]

There are multiple problems with the current implementation:

  • the listener for the enter key is always active. It should only trigger when the field actually has focus.
  • the blur listener seems unnecessary: every time the browser looses focus it triggers a search
  • the enter key doesn't always work
Comment by Andreas Weder [ 07/Jan/13 ]

I've re-opened this issues since the current behavior is somehow unreliable:

  • if I leave search by emptying the search box in Pages, the list view gets active.
    • the default view of Pages is the tree view, though
    • plus the view is not marked with a white arrow
  • sometimes, it's not possible to leave the search view: when I remove the search term, it gets added again and I have to try again (you have to try several times to try to make this happen).
Comment by Mikaël Geljić [ 07/Jan/13 ]

I made some substantial improvements to search interaction as part of MGNLUI-361, MGNLUI-509 and MGNLUI-510 (see comments there). These were pushed less than 2h ago, so feel free to check them out

Just a tiny addition: when leaving the search field, it currently goes back to the previous view, not default, e.g. if you were browsing thumbnails before entering a search query, then you get back to thumbnails view as soon as search is empty again.

Generated at Mon Feb 12 08:35:31 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.