Skip to content

Commit 4b95bc8

Browse files
fix(ui5-link): remove double click event (#5038)
Fixes: #4963 Closes: #4963
1 parent 58b2c75 commit 4b95bc8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/main/src/Link.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,10 +345,10 @@ class Link extends UI5Element {
345345

346346
_onkeydown(event) {
347347
if (isEnter(event)) {
348+
event.preventDefault();
348349
const executeEvent = this.fireEvent("click", null, true);
349350

350351
if (executeEvent) {
351-
event.preventDefault();
352352
this.href && window.open(this.href, this.target);
353353
}
354354
} else if (isSpace(event)) {

0 commit comments

Comments
 (0)