Skip to content

Commit 97e58d7

Browse files
committed
fix(CTabs): add missing disabled prop
1 parent 26656bf commit 97e58d7

File tree

1 file changed

+5
-0
lines changed
  • packages/coreui-vue/src/components/tabs

1 file changed

+5
-0
lines changed

packages/coreui-vue/src/components/tabs/CTab.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ import { defineComponent, h, inject, Ref } from 'vue'
33
const CTab = defineComponent({
44
name: 'CTab',
55
props: {
6+
/**
7+
* Toggle the disabled state for the component.
8+
*/
9+
disabled: Boolean,
610
/**
711
* Item key.
812
*/
@@ -34,6 +38,7 @@ const CTab = defineComponent({
3438
type: 'button',
3539
'aria-controls': `${props.itemKey}-tab-panel-${id}`,
3640
'aria-selected': isActive(),
41+
disabled: props.disabled,
3742
onClick: () => setActiveItemKey(props.itemKey),
3843
onFocus: () => setActiveItemKey(props.itemKey),
3944
},

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy