Skip to content

Commit

Permalink
Merge pull request #4672 from nextcloud-libraries/fix/dashboard--html…
Browse files Browse the repository at this point in the history
…-validation

fix(NcDashboardWidgetItem): do not assign href="" with empty link
  • Loading branch information
susnux authored Oct 19, 2023
2 parents d939939 + 7ddd071 commit ad1963e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ This component is meant to be used inside a DashboardWidget component.
<template>
<div @mouseover="hovered = true" @mouseleave="hovered = false">
<component :is="targetUrl ? 'a' : 'div'"
:href="targetUrl"
:href="targetUrl || undefined"
:target="targetUrl ? '_blank' : undefined"
:class="{ 'item-list__entry': true, 'item-list__entry--has-actions-menu': gotMenu }"
@click="onLinkClick">
Expand Down

0 comments on commit ad1963e

Please sign in to comment.