-
Notifications
You must be signed in to change notification settings - Fork 273
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
List: focusin
event doesn't bubble
#9787
Comments
Hello @ui5-webcomponents-topic-p, Can you please take a look at the reported issue and check the possibilities to bubble the Best Regards, |
Hi @Lukas742 , You can attach the "item-focused" event to the list component to track the focused ui5-li item. |
Hi @NakataCode the Another problem is, that our wrapper only wraps public events, so developers would need to attach the event listener themselves and can't use React props to achieve this. |
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! |
@NakataCode this issue is still relevant, if there's additional information required please let me know. |
Bug Description
This is a followup issue to this issue:
SAP/ui5-webcomponents-react#6294
The
focusin
event of theList
component doesn't bubble which prevents the syntheticonFocus
event of React to work correctly (internally it implementsfocusin
for the native event). React example.Also, it is not possible registering the
focusin
event of theui5-list
element itself, for example to identify whichui5-li
is focused. Of course, one could register afocusin
event for eachui5-li
, but it would be much easier to just add it to the parent component. The standard is, thatfocusin
events bubble, if that's no possible for this implementation, I think it would be worth mentioning that in the docs.I've edited the example of the linked issue to show this behavior: plain ui5wc example
Affected Component
No response
Expected Behaviour
The
focusin
event should bubble.Isolated Example
https://stackblitz.com/edit/github-pwfft8?file=index.html,main.js
Steps to Reproduce
Log Output, Stack Trace or Screenshots
No response
Priority
None
UI5 Web Components Version
2.1.2
Browser
Chrome, Edge, Firefox, Safari
Operating System
No response
Additional Context
No response
Organization
UI5WCR
Declaration
The text was updated successfully, but these errors were encountered: