@salesforcedevs/docs-components 1.3.327-rnbtab-alpha2 → 1.3.327-rnbtab-alpha3

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": "@salesforcedevs/docs-components",
3
- "version": "1.3.327-rnbtab-alpha2",
3
+ "version": "1.3.327-rnbtab-alpha3",
4
4
  "description": "Docs Lightning web components for DSC",
5
5
  "license": "MIT",
6
6
  "main": "index.js",
@@ -219,10 +219,12 @@ export default class ContentLayout extends LightningElement {
219
219
  }
220
220
 
221
221
  private restoreTabSelection() {
222
- const selectedTabId = this.getSelectedTabId();
223
- if (selectedTabId) {
224
- this.selectTabById(selectedTabId);
225
- }
222
+ requestAnimationFrame(() => {
223
+ const selectedTabId = this.getSelectedTabId();
224
+ if (selectedTabId) {
225
+ this.selectTabById(selectedTabId);
226
+ }
227
+ });
226
228
  }
227
229
 
228
230
  private getAllTabs(): any[] {