@afeefa/vue-app 0.0.202 → 0.0.203

Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1 @@
1
- 0.0.202
1
+ 0.0.203
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@afeefa/vue-app",
3
- "version": "0.0.202",
3
+ "version": "0.0.203",
4
4
  "description": "",
5
5
  "author": "Afeefa Kollektiv <kollektiv@afeefa.de>",
6
6
  "license": "MIT",
@@ -85,6 +85,14 @@ export default class ADialog extends Mixins(UsesPositionServiceMixin, ComponentW
85
85
  }
86
86
  onFocusin(e)
87
87
  }
88
+
89
+ // catch click events if activator's first element is set to be disabled
90
+ const activator = document.getElementsByClassName(this.activatorClass)[0]
91
+ activator.addEventListener('click', e => {
92
+ if (activator.children[0]?.getAttribute('disabled')) {
93
+ e.stopPropagation()
94
+ }
95
+ }, true) // capture phase, stop event before v-dialog receives it
88
96
  }
89
97
 
90
98
  coe_cancelOnEsc () {