@ons/design-system 50.0.0 → 50.0.1
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/components/modal/modal.js +0 -16
- package/package.json +1 -1
- package/scripts/main.es5.js +1 -1
- package/scripts/main.js +2 -2
|
@@ -52,7 +52,6 @@ export default class Modal {
|
|
|
52
52
|
document.querySelector('body').classList.add(ie11Class);
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
-
this.makePageContentInert();
|
|
56
55
|
this.saveLastFocusedEl();
|
|
57
56
|
|
|
58
57
|
if (event) {
|
|
@@ -79,20 +78,6 @@ export default class Modal {
|
|
|
79
78
|
}
|
|
80
79
|
}
|
|
81
80
|
|
|
82
|
-
makePageContentInert() {
|
|
83
|
-
if (document.querySelector('.ons-page')) {
|
|
84
|
-
document.querySelector('.ons-page').inert = true;
|
|
85
|
-
document.querySelector('.ons-page').setAttribute('aria-hidden', 'true');
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
removeInertFromPageContent() {
|
|
90
|
-
if (document.querySelector('.ons-page')) {
|
|
91
|
-
document.querySelector('.ons-page').inert = false;
|
|
92
|
-
document.querySelector('.ons-page').setAttribute('aria-hidden', 'false');
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
|
|
96
81
|
isDialogOpen() {
|
|
97
82
|
return this.component['open'];
|
|
98
83
|
}
|
|
@@ -111,7 +96,6 @@ export default class Modal {
|
|
|
111
96
|
|
|
112
97
|
this.component.close();
|
|
113
98
|
this.setFocusOnLastFocusedEl(this.lastFocusedEl);
|
|
114
|
-
this.removeInertFromPageContent();
|
|
115
99
|
}
|
|
116
100
|
}
|
|
117
101
|
}
|