vrembem 1.41.0 → 1.42.0
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/dev/scripts.esm.js +12 -3
- package/dev/scripts.esm.js.map +1 -1
- package/dev/scripts.js +12 -3
- package/dev/scripts.js.map +1 -1
- package/dev/scripts.modern.js +12 -3
- package/dev/scripts.modern.js.map +1 -1
- package/dev/scripts.umd.js +12 -3
- package/dev/scripts.umd.js.map +1 -1
- package/dist/scripts.esm.js +1 -1
- package/dist/scripts.esm.js.map +1 -1
- package/dist/scripts.js +1 -1
- package/dist/scripts.js.map +1 -1
- package/dist/scripts.modern.js +1 -1
- package/dist/scripts.modern.js.map +1 -1
- package/dist/scripts.umd.js +1 -1
- package/dist/scripts.umd.js.map +1 -1
- package/package.json +3 -3
package/dev/scripts.umd.js
CHANGED
|
@@ -1379,7 +1379,10 @@
|
|
|
1379
1379
|
// Update state class
|
|
1380
1380
|
popover.target.classList.remove(this.settings.stateActive); // Update a11y attributes
|
|
1381
1381
|
|
|
1382
|
-
popover.trigger.
|
|
1382
|
+
if (popover.trigger.hasAttribute('aria-controls')) {
|
|
1383
|
+
popover.trigger.setAttribute('aria-expanded', 'false');
|
|
1384
|
+
} // Disable popper event listeners
|
|
1385
|
+
|
|
1383
1386
|
|
|
1384
1387
|
popover.popper.setOptions({
|
|
1385
1388
|
modifiers: [{
|
|
@@ -1587,6 +1590,9 @@
|
|
|
1587
1590
|
// If it's a popover trigger
|
|
1588
1591
|
if (obj.hasAttribute('aria-controls')) {
|
|
1589
1592
|
return obj.getAttribute('aria-controls');
|
|
1593
|
+
} // If it's a popover tooltip trigger
|
|
1594
|
+
else if (obj.hasAttribute('aria-describedby')) {
|
|
1595
|
+
return obj.getAttribute('aria-describedby');
|
|
1590
1596
|
} // If it's a popover target
|
|
1591
1597
|
else if (obj.closest(this.settings.selectorPopover)) {
|
|
1592
1598
|
return obj.id;
|
|
@@ -1602,7 +1608,7 @@
|
|
|
1602
1608
|
var id = getPopoverID.call(this, query);
|
|
1603
1609
|
|
|
1604
1610
|
if (id) {
|
|
1605
|
-
var trigger = document.querySelector("[aria-controls=\"" + id + "\"]");
|
|
1611
|
+
var trigger = document.querySelector("[aria-controls=\"" + id + "\"]") || document.querySelector("[aria-describedby=\"" + id + "\"]");
|
|
1606
1612
|
var target = document.querySelector("#" + id);
|
|
1607
1613
|
|
|
1608
1614
|
if (!trigger && !target) {
|
|
@@ -3414,7 +3420,10 @@
|
|
|
3414
3420
|
// Update state class
|
|
3415
3421
|
popover.target.classList.add(this.settings.stateActive); // Update a11y attribute
|
|
3416
3422
|
|
|
3417
|
-
popover.trigger.
|
|
3423
|
+
if (popover.trigger.hasAttribute('aria-controls')) {
|
|
3424
|
+
popover.trigger.setAttribute('aria-expanded', 'true');
|
|
3425
|
+
} // Update popover config
|
|
3426
|
+
|
|
3418
3427
|
|
|
3419
3428
|
popover.config = getConfig(popover.target, this.settings); // Enable popper event listeners and set placement/modifiers
|
|
3420
3429
|
|