@teammodlr/ui-kit 3.0.0-beta.20 → 3.0.0-beta.22

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": "@teammodlr/ui-kit",
3
- "version": "3.0.0-beta.20",
3
+ "version": "3.0.0-beta.22",
4
4
  "description": "",
5
5
  "main": "lib/index.cjs.js",
6
6
  "module": "lib/index.es.js",
@@ -353,6 +353,14 @@ export default defineComponent({
353
353
 
354
354
  function setFocusTrap(value: boolean) {
355
355
  focusTrapOverride.value = value;
356
+ const el = dialogElement.value;
357
+ if (el) {
358
+ if (value) {
359
+ el.removeAttribute('inert');
360
+ } else {
361
+ el.setAttribute('inert', '');
362
+ }
363
+ }
356
364
  }
357
365
 
358
366
  expose({