vgapp 0.2.2 → 0.2.3

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/CHANGELOG.md CHANGED
@@ -1,4 +1,4 @@
1
- # VEGAS-APP 0.2.2 (Апрель, 4, 2025)
1
+ # VEGAS-APP 0.2.2 - 0.2.3 (Апрель, 4, 2025)
2
2
  ## Модуль VGDROPDOWN
3
3
  * Добавлен параметр overflow и backdrop
4
4
 
@@ -31,10 +31,9 @@ class VGDropdown extends BaseModule {
31
31
 
32
32
  let defaultParams = {
33
33
  offset: [0, 2],
34
- over: false,
35
- backdrop: true,
36
- overflow: true,
37
- keyboard: true,
34
+ backdrop: false,
35
+ overflow: false,
36
+ keyboard: false,
38
37
  placement: 'bottom',
39
38
  timeoutAnimation: 350,
40
39
  hover: false,
@@ -102,7 +101,7 @@ class VGDropdown extends BaseModule {
102
101
  this._drop.classList.add(CLASS_NAME_SHOW);
103
102
  this._setPlacement();
104
103
 
105
- if (this._params.backdrop) {
104
+ if (this._params.backdrop && !this._params.hover) {
106
105
  Backdrop.show();
107
106
  }
108
107
 
@@ -154,9 +153,10 @@ class VGDropdown extends BaseModule {
154
153
  this._element.classList.remove(CLASS_NAME_SHOW);
155
154
  this._element.setAttribute('aria-expanded', 'false');
156
155
 
157
- if (this._params.backdrop) {
156
+ if (this._params.backdrop && !this._params.hover) {
157
+ const _this = this;
158
158
  Backdrop.hide(function () {
159
- if (this._params.overflow) {
159
+ if (_this._params.overflow) {
160
160
  Overflow.destroy();
161
161
  }
162
162
  });