Skip to content

Commit d2b7c2f

Browse files
GaoNeng-wWwkagol
authored andcommitted
fix: add deep watch in sv-select in initWatch function
1 parent d448546 commit d2b7c2f

File tree

1 file changed

+2
-1
lines changed
  • packages/renderless/src/color-select-panel/sv-select

1 file changed

+2
-1
lines changed

packages/renderless/src/color-select-panel/sv-select/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ export const useDrag = (
8686
export const initWatch = (state: State, update: () => void, { watch }: ISharedRenderlessParamHooks) => {
8787
watch(
8888
() => state.colorValue.value,
89-
() => update()
89+
() => update(),
90+
{ deep: true }
9091
)
9192
}

0 commit comments

Comments
 (0)