Skip to content

Commit 507220d

Browse files
committed
fix(ol-*-control): make sure control is updated on property changes
1 parent 8db77a0 commit 507220d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/composables/useControl.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ export default function useControl<T extends InnerControlType>(
102102
const parent = controlBar !== null ? controlBar?.value : map;
103103

104104
const control = computed<T>(
105-
() => new ControlType(properties as Record<string, unknown>),
105+
() => new ControlType({ ...(properties as Record<string, unknown>) }),
106106
);
107107

108108
control.value.set("order", attrs.order === undefined ? 0 : attrs.order);

0 commit comments

Comments
 (0)