-
Notifications
You must be signed in to change notification settings - Fork 273
Link: Unable to activate Link through ENTER key press #3007
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
Comments
Hey @2bno1, I'm not 100% sure whether the |
Hi guys, As you can read in our docs, the |
Looks like this is somehow connected to the presence of the |
Hello @SAP/ui5-webcomponents-topic-b @tsanislavgatev Could you take over this issue? The ui5-link does not fire the "click" event on pressing the Enter key. The openui5 Link, for reference is firing its "press" event on Enter (even if "href" is not present), so I guess we have to fix this to make the web component behaves the same as the openui5 Link. The author has provided an isolated example and steps to reproduce. |
Describe the bug
Per document, onClick should be "Fired when the Link is triggered either with a mouse/tap or by using the Enter key."
However, onClick is not called by using Enter Key when it's focused.
Isolated Example
https://codesandbox.io/s/sad-faraday-voiil?file=/src/App.js
To Reproduce
Steps to reproduce the behavior:
Tab
key to focus on the Link: 'Focus me and press Enter'Enter
keyonClick
is not firedExpected behavior
The
onClick
of the Link component should be fired by pressing Enter keyScreenshots
If applicable, add screenshots to help explain your problem.
UI5 Web Components for React Information
@ui5/webcomponents
version: 0.29.8 (@sf)@ui5/webcomponents-react
version: 0.129.8 (@sf)Operating System: macOS Version 11.2.3
Browser: Chrome Version 89.0.4389.90
Additional context
N/A
The text was updated successfully, but these errors were encountered: