@pzerelles/headlessui-svelte 2.1.2-next.11 → 2.1.2-next.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/hooks/use-controllable.svelte.js +2 -1
- package/dist/listbox/Listbox.svelte +4 -1
- package/dist/listbox/Listbox.svelte.d.ts +1 -1
- package/dist/listbox/ListboxOption.svelte +1 -0
- package/dist/listbox/ListboxOptions.svelte +0 -1
- package/dist/utils/floating-ui/svelte-dom/useFloating.svelte.js +0 -1
- package/package.json +1 -1
|
@@ -198,7 +198,7 @@ const stateReducer = (initialState) => {
|
|
|
198
198
|
};
|
|
199
199
|
let {
|
|
200
200
|
ref = $bindable(),
|
|
201
|
-
value: controlledValue,
|
|
201
|
+
value: controlledValue = $bindable(),
|
|
202
202
|
defaultValue,
|
|
203
203
|
form,
|
|
204
204
|
name,
|
|
@@ -218,6 +218,9 @@ const controllable = useControllable(
|
|
|
218
218
|
{
|
|
219
219
|
get controlledValue() {
|
|
220
220
|
return controlledValue;
|
|
221
|
+
},
|
|
222
|
+
set controlledValue(value2) {
|
|
223
|
+
controlledValue = value2;
|
|
221
224
|
}
|
|
222
225
|
},
|
|
223
226
|
controlledOnChange,
|
|
@@ -75,7 +75,6 @@ export function useFloating(options = {}) {
|
|
|
75
75
|
config.platform = platformRef.current;
|
|
76
76
|
}
|
|
77
77
|
computePosition(referenceRef.current, floatingRef.current, config).then(async (data) => {
|
|
78
|
-
console.log("computing", config);
|
|
79
78
|
const fullData = {
|
|
80
79
|
...data,
|
|
81
80
|
// The floating element's position may be recomputed while it's closed
|