From 507220d553142a3aeaa304de5aa0ec4e9d704bd0 Mon Sep 17 00:00:00 2001 From: Danny Koppenhagen Date: Fri, 12 Apr 2024 21:44:52 +0200 Subject: [PATCH] fix(ol-*-control): make sure control is updated on property changes --- src/composables/useControl.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/composables/useControl.ts b/src/composables/useControl.ts index 5c320d8f..5a7ac51b 100644 --- a/src/composables/useControl.ts +++ b/src/composables/useControl.ts @@ -102,7 +102,7 @@ export default function useControl( const parent = controlBar !== null ? controlBar?.value : map; const control = computed( - () => new ControlType(properties as Record), + () => new ControlType({ ...(properties as Record) }), ); control.value.set("order", attrs.order === undefined ? 0 : attrs.order);