We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
disabled
1 parent 906c378 commit 1d1e691Copy full SHA for 1d1e691
src/scripts/Picklist.tsx
@@ -50,6 +50,11 @@ function collectOptionValues(children: unknown): PicklistValue[] {
50
return [];
51
}
52
53
+ // Skip disabled items
54
+ if ('disabled' in props && props.disabled === true) {
55
+ return [];
56
+ }
57
+
58
return [props.value];
59
}).flat();
60
@@ -86,6 +91,11 @@ function findSelectedItemLabel(
86
91
return null;
87
92
88
93
94
95
96
+ return null;
97
98
89
99
// Safely access label and children properties with proper type checking
90
100
const label = 'label' in props ? props.label : undefined;
101
const itemChildren = 'children' in props ? props.children : undefined;
0 commit comments