Skip to content

Commit 1d7a910

Browse files
authored
Track and assign disabled property to context.disabled
1 parent a678ca7 commit 1d7a910

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 SelectImpl = 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)