@policystudio/policy-studio-ui-vue 1.1.22 → 1.1.23

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.22",
3
+ "version": "1.1.23",
4
4
  "description": "Policy Studio UI",
5
5
  "main": "src/index.js",
6
6
  "author": "Policy Studio Team",
@@ -148,6 +148,7 @@
148
148
  </PsRichTooltip>
149
149
 
150
150
  <PsDropdown
151
+ ref="PSDropdown"
151
152
  v-if="shouldShowDropdown(item)"
152
153
  :class="[isHoveringRow === index ? 'opacity-1' : 'opacity-0']"
153
154
  position="custom"
@@ -531,6 +532,11 @@ export default {
531
532
  executeCallback(item, action) {
532
533
  if(item?.actions?.length === 1) item.actions[0].callback(item)
533
534
  else action?.callback(item)
535
+
536
+ Object.values(this.$refs).flat(Infinity).forEach(( component => {
537
+ if(component?.$options?._componentTag == 'PsDropdown'){
538
+ component.close()
539
+ }}))
534
540
  },
535
541
  getStatusClass(item) {
536
542
  return this.checkRowIsVisible(item) ? 'opened' : 'closed'