@v-c/trigger 1.0.10 → 1.0.11
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/index.js +3 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -117,6 +117,9 @@ function generateTrigger(PortalComponent = Portal) {
|
|
|
117
117
|
} else uniqueContext?.hide(props.mouseLeaveDelay || 0);
|
|
118
118
|
});
|
|
119
119
|
const openRef = shallowRef(mergedOpen.value);
|
|
120
|
+
watch(mergedOpen, () => {
|
|
121
|
+
openRef.value = mergedOpen.value;
|
|
122
|
+
});
|
|
120
123
|
const internalTriggerOpen = (nextOpen) => {
|
|
121
124
|
if (mergedOpen.value !== nextOpen) {
|
|
122
125
|
internalOpen.value = nextOpen;
|