| | |
| | | * @param {string} tab - Tab to switch to ('items' or 'lists') |
| | | * @param {boolean} updateHistory - Whether to push the state to the url |
| | | */ |
| | | switchTab(tab, updateHistory = true) { |
| | | switchTab(tab, updateHistory = false) { |
| | | |
| | | document.activeElement?.blur(); |
| | | // if (typeof this.callbacks['onSwitch'] === 'function') { |
| | |
| | | * Update URL when a child tab changes |
| | | */ |
| | | updateUrlFromChild() { |
| | | console.log('Updating URL'); |
| | | if (('updateURL' in this.callbacks) ? this.callbacks.updateURL : true) { |
| | | console.log('UpdateUrlFromChild'); |
| | | if (!this.parent) { |
| | | // Only the root container should update the URL |
| | | const fullPath = this.getFullTabPath(this.activeTab); |