Skip to content

Commit

Permalink
fix(buttons): prevent overriding rel and target props
Browse files Browse the repository at this point in the history
  • Loading branch information
stafyniaksacha committed Jul 3, 2023
1 parent 9f5c99f commit 26cdffa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions composables/buttons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,14 @@ export const useNinjaButton = (
})
const relationship = computed(() => {
if (!external.value) {
return
return properties.rel
}

return properties.rel ?? externalDefaultRelationship
})
const target = computed(() => {
if (!external.value) {
return
return properties.target
}

return properties.target ?? externalDefaultTarget
Expand Down

0 comments on commit 26cdffa

Please sign in to comment.