SAP / ui5-webcomponents

UI5 Web Components - the enterprise-flavored sugar on top of native APIs! Build SAP Fiori user interfaces with the technology of your choice.
https://sap.github.io/ui5-webcomponents/
Apache License 2.0
1.5k stars 260 forks source link

[List]: focus loss after "load-more" event #9329

Closed ee92 closed 1 month ago

ee92 commented 2 months ago

Bug Description

There is no way to control the focus of the List items programatically.

Affected Component

List, CustomListItem

Expected Behaviour

Expect to have ability to set the focus to the first newly loaded item. Currently there doesn't seem to be a way to set the focus programatically.

Isolated Example

playground

Steps to Reproduce

  1. Go to playground for growing list (isolated example)
  2. Click "More" button
  3. Notice focus is lost after the "More" button disappears

Log Output, Stack Trace or Screenshots

No response

Priority

Medium

UI5 Web Components Version

1.24.1

Browser

Chrome

Operating System

No response

Additional Context

Thank you

Organization

SuccessFactors

Declaration

kineticjs commented 2 months ago

Hi @ee92,

Can you please test the following on your side: Since the API allows you to access the rows slot, you can call e.g. myTableElement.rows[0].focus() in the listener to the ui5-load-more event.

github-actions[bot] commented 1 month ago

Hello, everyone! The issue has been inactive for 21 days. If there are still questions or comments, please feel free to continue the discussion. Inactive issues will be closed after 7 days!

github-actions[bot] commented 1 month ago

Hello, everyone! The issue has been inactive for 28 days, so I am closing the issue.