We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6c745ce commit 662cbbfCopy full SHA for 662cbbf
ui/components/app/snaps/snap-ui-renderer/components/dropdown.ts
@@ -12,6 +12,7 @@ export const dropdown: UIComponentFactory<DropdownElement> = ({
12
const options = children.map((child) => ({
13
value: child.props.value,
14
name: child.props.children,
15
+ disabled: child.props.disabled,
16
}));
17
18
return {
ui/components/ui/dropdown/dropdown.js
@@ -35,7 +35,11 @@ const Dropdown = ({
35
>
36
{options.map((option) => {
37
return (
38
- <option key={option.value} value={option.value}>
+ <option
39
+ key={option.value}
40
+ value={option.value}
41
+ disabled={option.disabled}
42
+ >
43
{option.name || option.value}
44
</option>
45
);
0 commit comments