Skip to content

Commit

Permalink
fix(ui5-listitem): allow support for anchor tags in ListItem
Browse files Browse the repository at this point in the history
Fixes #6121
  • Loading branch information
kskondov committed Dec 1, 2022
1 parent 34f3d62 commit 4380325
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/main/src/ListItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,9 @@ class ListItem extends ListItemBase {
return;
}

event.preventDefault();
if (isEnter(event)) {
event.preventDefault();
}
this.fireEvent("_press", { item: this, selected: this.selected, key: event.key });
}

Expand Down

0 comments on commit 4380325

Please sign in to comment.