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 +1 -1
- package/app/modules/vgdropdown/js/vgdropdown.js +7 -7
- package/build/vgapp.css +4945 -10
- package/build/vgapp.js +4277 -3
- package/build/vgapp.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -31,10 +31,9 @@ class VGDropdown extends BaseModule {
|
|
|
31
31
|
|
|
32
32
|
let defaultParams = {
|
|
33
33
|
offset: [0, 2],
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
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 (
|
|
159
|
+
if (_this._params.overflow) {
|
|
160
160
|
Overflow.destroy();
|
|
161
161
|
}
|
|
162
162
|
});
|