Skip to content

Commit

Permalink
NcListItem: don't explicitly set location
Browse files Browse the repository at this point in the history
Signed-off-by: Varun Patil <varunpatil@ucla.edu>
  • Loading branch information
pulsejet committed Mar 4, 2024
1 parent 3ed77de commit 3a6e079
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/components/NcListItem/NcListItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@
@focus="showActions"
@focusout="handleBlur"
@click="onClick($event, navigate, routerLinkHref)"
@keydown.enter="onClick($event, navigate, routerLinkHref)"
@keydown.enter.prevent="$event.target.click()"
@keydown.esc="hideActions">
<!-- @slot This slot is used for the NcAvatar or icon, the content of this slot must not be interactive -->
<slot name="icon" />
Expand Down Expand Up @@ -630,8 +630,6 @@ export default {
if (routerLinkHref) {
navigate?.(event)
event.preventDefault()
} else {
window.location = this.href
}
},

Expand Down

0 comments on commit 3a6e079

Please sign in to comment.