@dialpad/dialtone-vue 2.54.0 → 2.54.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/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [2.54.1](https://github.com/dialpad/dialtone-vue/compare/v2.54.0...v2.54.1) (2023-01-26)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **Modal:** fix modal focusFirstElement method ([#720](https://github.com/dialpad/dialtone-vue/issues/720)) ([0bc9205](https://github.com/dialpad/dialtone-vue/commit/0bc9205b42787c7328925175348f0dd9bc39b122))
7
+
1
8
  # [2.54.0](https://github.com/dialpad/dialtone-vue/compare/v2.53.1...v2.54.0) (2023-01-26)
2
9
 
3
10
 
@@ -4270,7 +4270,7 @@ const focusableElementsList = `button,[href],input,select,textarea,details,[tabi
4270
4270
  * will default to the root node of the vue component
4271
4271
  */
4272
4272
  async focusFirstElement(el) {
4273
- const elToFocus = this.getFirstFocusableElement(el);
4273
+ const elToFocus = await this.getFirstFocusableElement(el);
4274
4274
  elToFocus === null || elToFocus === void 0 ? void 0 : elToFocus.focus({
4275
4275
  preventScroll: true
4276
4276
  });
@@ -4280,7 +4280,7 @@ const focusableElementsList = `button,[href],input,select,textarea,details,[tabi
4280
4280
  * will default to the root node of the vue component
4281
4281
  */
4282
4282
  async focusFirstElement(el) {
4283
- const elToFocus = this.getFirstFocusableElement(el);
4283
+ const elToFocus = await this.getFirstFocusableElement(el);
4284
4284
  elToFocus === null || elToFocus === void 0 ? void 0 : elToFocus.focus({
4285
4285
  preventScroll: true
4286
4286
  });