Skip to content

Commit 4f181cd

Browse files
Merge pull request #736 from y-react/propagate-disabled
Track and assign disabled property
2 parents 65cf601 + 941ff92 commit 4f181cd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/kit-headless/src/components/select/select-root.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,10 @@ export const HSelectImpl = component$<SelectProps<boolean> & InternalSelectProps
278278
initialLoadSig.value = false;
279279
});
280280

281+
useTask$(({ track }) => {
282+
context.disabled = track(() => disabled);
283+
});
284+
281285
return (
282286
<div
283287
role="combobox"

0 commit comments

Comments
 (0)