@avakhula/ui 0.0.27 → 0.0.28

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": "@avakhula/ui",
3
- "version": "0.0.27",
3
+ "version": "0.0.28",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.umd.cjs",
6
6
  "source": "src/index.js",
@@ -156,11 +156,13 @@ export default {
156
156
  this.$globalEvents.$emit("dropdown:open", this);
157
157
  },
158
158
  close() {
159
- if (this.disabled) {
160
- return;
159
+ if (this.isOpenedState) {
160
+ if (this.disabled) {
161
+ return;
162
+ }
163
+ this.isOpenedState = false;
164
+ this.$emit("close");
161
165
  }
162
- this.isOpenedState = false;
163
- this.$emit("close");
164
166
  },
165
167
  debouncedOpen() {
166
168
  this.timeout = setTimeout(() => {