From 3007b7f3e28fbc8a99f0b851a3f6a58e67850130 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Molakvo=C3=A6=20=28skjnldsv=29?= Date: Wed, 31 Mar 2021 16:32:59 +0200 Subject: [PATCH] Make sure to pass all props and attributes to single-action Actions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ (skjnldsv) --- src/components/Actions/Actions.vue | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/components/Actions/Actions.vue b/src/components/Actions/Actions.vue index 488a2e700c..a177d759cf 100644 --- a/src/components/Actions/Actions.vue +++ b/src/components/Actions/Actions.vue @@ -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') { @@ -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, } } }