ui-ingredients 0.0.56 → 0.0.57
Sign up to get free protection for your applications and to get access to all the features.
@@ -34,8 +34,7 @@ export function createCombobox(props) {
|
|
34
34
|
getRootNode: environment?.getRootNode,
|
35
35
|
collection,
|
36
36
|
}));
|
37
|
-
|
38
|
-
const [state, send] = useMachine(combobox.machine(context));
|
37
|
+
const [state, send] = useMachine(combobox.machine(context), { context });
|
39
38
|
return reflect(() => {
|
40
39
|
const o = combobox.connect(state, send, normalizeProps);
|
41
40
|
return {
|
@@ -34,8 +34,7 @@ export function createSelect(props) {
|
|
34
34
|
getRootNode: environment?.getRootNode,
|
35
35
|
collection,
|
36
36
|
}));
|
37
|
-
|
38
|
-
const [state, send] = useMachine(select.machine(context));
|
37
|
+
const [state, send] = useMachine(select.machine(context), { context });
|
39
38
|
return reflect(() => {
|
40
39
|
const o = select.connect(state, send, normalizeProps);
|
41
40
|
return {
|