@policystudio/policy-studio-ui-vue 1.1.90-beta.88 → 1.1.90-beta.90

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@policystudio/policy-studio-ui-vue",
3
- "version": "1.1.90-beta.88",
3
+ "version": "1.1.90-beta.90",
4
4
  "description": "Policy Studio UI",
5
5
  "author": "Policy Studio Team",
6
6
  "scripts": {
@@ -26,8 +26,6 @@
26
26
  />
27
27
  </button>
28
28
  </div>
29
-
30
-
31
29
  <Teleport to="body">
32
30
  <Transition name="fade">
33
31
  <div
@@ -116,7 +114,9 @@ const open = () => {
116
114
  emit('open')
117
115
  }
118
116
 
119
- const close = () => {
117
+ const close = (event) => {
118
+ if(event?.target && PSDropdownTrigger.value.contains(event?.target)) return
119
+
120
120
  show.value = false
121
121
  emit('close')
122
122
  }
@@ -126,7 +126,7 @@ const toggle = (event) => {
126
126
 
127
127
  if (event) event.stopPropagation()
128
128
 
129
- show.value ? close() : open()
129
+ show.value = !show.value
130
130
 
131
131
  }
132
132