ui5-webcomponents icon indicating copy to clipboard operation
ui5-webcomponents copied to clipboard

[SF][ui5-list] we need to clear the previous focused item after list item changed.

Open sfsf-xweb-sh opened this issue 1 year ago • 0 comments

Bug Description

hi, team

inner the list component there is a variable _previouslyFocusedItem for record the previous focused Item. when tab to the list and we can get the correct previous focused Item.

But there is some thing wrong, if the list item is changed, see below diagram.

image

I think for this case we need to clear the _previouslyFocusedItem. Or It will not focus the first new one.

https://github.com/SAP/ui5-webcomponents/blob/b89f91c0a2f8afb336f2269cc441566b3ebfdd2c/packages/main/src/List.js#L648

I think we need to add this._previouslyFocusedItem = null; in prepareListItems.

Context

  • UI5 Web Components version: 1.6.0
  • OS/Platform: /
  • Browser: /
  • Affected component: ui5-list

Priority

  • [ ] Low
  • [ ] Medium
  • [x] High
  • [ ] Very High

The priority indicates the severity of the issue. To set the appropriate priority consider the following criteria:

  • Breaks entire application or system - High or Very High
  • Accessibility issue - Medium or High
  • Functional issue - Medium or High
  • Visual issue - Low or Medium

Note: The priority might be re-evaluated by the issue processor.

Stakeholder Info (if applicable)

  • Organization: {...}
  • Business impact: {...}

sfsf-xweb-sh avatar Aug 16 '22 07:08 sfsf-xweb-sh