Skip to content

Commit

Permalink
Merge pull request #1809 from nextcloud/fix/single-action-attributes
Browse files Browse the repository at this point in the history
Make sure to pass all props and attributes to single-action Actions
  • Loading branch information
skjnldsv authored Apr 2, 2021
2 parents 696af91 + 3007b7f commit 332c71b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/components/Actions/Actions.vue
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,8 @@ export default {
href: this.firstAction.href,
target: this.firstAction.target,
'aria-label': this.firstAction.ariaLabel,
...this.firstAction.$attrs,
...this.firstAction.$props,
}
}
if (tag === 'ActionRouter') {
Expand All @@ -419,12 +421,16 @@ export default {
to: this.firstAction.to,
exact: this.firstAction.exact,
'aria-label': this.firstAction.ariaLabel,
...this.firstAction.$attrs,
...this.firstAction.$props,
}
}
if (tag === 'ActionButton') {
return {
is: 'button',
'aria-label': this.firstAction.ariaLabel,
...this.firstAction.$attrs,
...this.firstAction.$props,
}
}
}
Expand Down

0 comments on commit 332c71b

Please sign in to comment.