Skip to content

Commit

Permalink
fix: dragable 动态插入值,不能拖拽问题 (#146)
Browse files Browse the repository at this point in the history
  • Loading branch information
winixt committed May 12, 2022
1 parent 4169f85 commit a3c9f89
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions components/draggable/useDraggable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,9 @@ export function useDraggable(
}
}
watch(containerRef, init, { immediate: true });
watch(propsRef, () => {
updateSettingStyle();
});

function resetDragTarget() {
dragTarget.el = null;
Expand Down

0 comments on commit a3c9f89

Please sign in to comment.