diff --git a/src/components/NcButton/NcButton.vue b/src/components/NcButton/NcButton.vue index ad1bdeaf4c..9204e4a169 100644 --- a/src/components/NcButton/NcButton.vue +++ b/src/components/NcButton/NcButton.vue @@ -202,7 +202,6 @@ button { v-bind="rootElement" :class="buttonClassObject" :aria-label="ariaLabel" - :type="nativeType" :disabled="disabled" v-on="$listeners"> @@ -321,6 +320,7 @@ export default { return { is: 'router-link', tag: 'button', + type: this.nativeType, to: this.to, exact: this.exact, ...this.$attrs, @@ -330,11 +330,13 @@ export default { return { is: 'a', href: this.href, + role: 'button', ...this.$attrs, } } return { is: 'button', + type: this.nativeType, ...this.$attrs, } },