[MGNLUI-5843] Clicking a selected row in a browser should unselect it Created: 28/Apr/20  Updated: 13/Jan/21  Resolved: 28/Jul/20

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

Type: Improvement Priority: Neutral
Reporter: Christopher Zimmermann Assignee: Jorge Franco
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: 0d
Time Spent: 1h 40m
Original Estimate: Not Specified

Attachments: PNG File image-2020-09-08-14-43-45-475.png    
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)
Documentation update required:
Yes
Date of First Response:
Epic Link: M6 UI & UX Improvements
Sprint: CM & OC 6, CM & OC 7
Story Points: 3

 Description   

In pages app and content apps - If only one row is selected in the browser, then clicking on that row should unselect it.

Currently its hard to unselect a single selected row, you intuitively try clicking on it, but nothing happens. You must hit the checkbox to unselect it.

Use case: I want nothing selected so that when I create a new item, it is created in the root.

Note: In definitions app, clicking on a row that is selected causes it to be unselected. It is the desired behaviour. (Maybe the difference is that rows do not have checkboxes?)

Note: If there are several selected rows, then clicking on one of them will just select that one. This is correct. So here we talk about the case where there is ONLY ONE selected row, and I click on it.

Timebox: 3, otherwise worth looking at w/ UI FW team.



 Comments   
Comment by Anja von Gunten [ 28/Apr/20 ]

Agree. You can already select a row by simply clicking on the row. So clicking on a selected row should also unselect it.

Comment by Mikaël Geljić [ 30/Jun/20 ]
  • worth debugging ItemClickHandler and/or disable FastGrid navigation to narrow down the issue. Or observer SelectionListener in GridView, could add the item-click listener to trigger unselection.
  • workaround: space key produces the expected behavior
Generated at Mon Feb 12 09:30:36 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.