diff --git a/CHANGELOG.md b/CHANGELOG.md index 365c3c2..1657981 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,13 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. +### [0.32.15](https://github.com/Fantom-foundation/Fantom-Vue3-Components/compare/v0.32.14...v0.32.15) (2023-06-02) + + +### Bug Fixes + +* **FTabs:** fix tab activation bug ([59c7261](https://github.com/Fantom-foundation/Fantom-Vue3-Components/commit/59c72615655a4c3c30d902d4a1b9f922edf20113)) + ### [0.32.14](https://github.com/Fantom-foundation/Fantom-Vue3-Components/compare/v0.32.13...v0.32.14) (2023-06-02) diff --git a/package-lock.json b/package-lock.json index a07d264..09db6de 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "fantom-vue3-components", - "version": "0.32.14", + "version": "0.32.15", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "fantom-vue3-components", - "version": "0.32.14", + "version": "0.32.15", "license": "MIT", "dependencies": { "@vueuse/core": "^8.5.0", diff --git a/package.json b/package.json index 4f803d7..501567a 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "fantom-vue3-components", - "version": "0.32.14", + "version": "0.32.15", "description": "Library of various Vue 3 components with focus on accessibility", "author": "Fantom Foundation", "license": "MIT", diff --git a/src/components/FTabs/FTabs.vue b/src/components/FTabs/FTabs.vue index c979a00..f87ab71 100755 --- a/src/components/FTabs/FTabs.vue +++ b/src/components/FTabs/FTabs.vue @@ -109,17 +109,17 @@ export default { await this.tabAction('setData', tabsData); if (!activePanelExists) { - this.setActiveTabByIndex(0); + await this.setActiveTabByIndex(0); } }, /** * Deactivate currently active panel. */ - deactivateActivePanel() { + async deactivateActivePanel() { const { dTabPanels } = this; - this.tabAction('deactivate'); + await this.tabAction('deactivate'); for (let i = 0, len1 = dTabPanels.length; i < len1; i++) { if (dTabPanels[i].active) { @@ -132,14 +132,14 @@ export default { /** * @param {int} _index */ - setActiveTabByIndex(_index) { + async setActiveTabByIndex(_index) { const tabPanel = this.dTabPanels[_index]; if (tabPanel && !tabPanel.disabled) { - this.deactivateActivePanel(); + await this.deactivateActivePanel(); tabPanel.active = true; - this.tabAction('activate', tabPanel.id); + await this.tabAction('activate', tabPanel.id); this.$emit('tab-set', { tabId: tabPanel.id }); }