lightning-base-components 1.13.4-alpha → 1.13.5-alpha
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
|
@@ -353,10 +353,8 @@ export const setFocusActiveCell = function (element, state, direction, info) {
|
|
|
353
353
|
cellElement.parentElement.focus();
|
|
354
354
|
cellElement.setMode(keyboardMode, info);
|
|
355
355
|
|
|
356
|
-
const scrollingParent = element.querySelector(
|
|
357
|
-
'.slds-table_header-fixed_container'
|
|
358
|
-
);
|
|
359
356
|
const scrollableY = element.querySelector('.slds-scrollable_y');
|
|
357
|
+
const scrollingParent = scrollableY.parentElement;
|
|
360
358
|
const parentRect = scrollingParent.getBoundingClientRect();
|
|
361
359
|
const findMeRect = cellElement.getBoundingClientRect();
|
|
362
360
|
if (findMeRect.top < parentRect.top + TOP_MARGIN) {
|
|
@@ -436,10 +434,8 @@ export const setFocusActiveRow = function (element, state) {
|
|
|
436
434
|
const row = getRowElementByIndexes(element, rowIndex);
|
|
437
435
|
row.focus();
|
|
438
436
|
|
|
439
|
-
const scrollingParent = element.querySelector(
|
|
440
|
-
'.slds-table_header-fixed_container'
|
|
441
|
-
);
|
|
442
437
|
const scrollableY = element.querySelector('.slds-scrollable_y');
|
|
438
|
+
const scrollingParent = scrollableY.parentElement;
|
|
443
439
|
const parentRect = scrollingParent.getBoundingClientRect();
|
|
444
440
|
const findMeRect = row.getBoundingClientRect();
|
|
445
441
|
if (findMeRect.top < parentRect.top + TOP_MARGIN) {
|
|
@@ -101,14 +101,14 @@ export default class LightningTabBar extends LightningElement {
|
|
|
101
101
|
showErrorIndicator: tab.showErrorIndicator,
|
|
102
102
|
};
|
|
103
103
|
});
|
|
104
|
-
|
|
105
|
-
let selectedTab =
|
|
104
|
+
|
|
105
|
+
let selectedTab = allTabs[0];
|
|
106
106
|
if (this._selectedTab) {
|
|
107
|
-
selectedTab =
|
|
107
|
+
selectedTab = allTabs.find(
|
|
108
108
|
(tab) => tab.value === this._selectedTab.value
|
|
109
109
|
);
|
|
110
110
|
if (!selectedTab) {
|
|
111
|
-
selectedTab =
|
|
111
|
+
selectedTab = allTabs[0];
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
114
|
if (selectedTab) {
|
|
@@ -117,6 +117,7 @@ export default class LightningTabBar extends LightningElement {
|
|
|
117
117
|
selectedTab.ariaSelected = 'true';
|
|
118
118
|
selectedTab.tabIndex = 0;
|
|
119
119
|
}
|
|
120
|
+
this._allTabs = allTabs;
|
|
120
121
|
|
|
121
122
|
this._queueSynchronizeA11 = true;
|
|
122
123
|
|
|
@@ -128,7 +129,7 @@ export default class LightningTabBar extends LightningElement {
|
|
|
128
129
|
|
|
129
130
|
@api
|
|
130
131
|
selectTabByValue(tabValue) {
|
|
131
|
-
this._selectTab(tabValue
|
|
132
|
+
this._selectTab(tabValue);
|
|
132
133
|
}
|
|
133
134
|
|
|
134
135
|
@api
|
|
@@ -276,13 +277,8 @@ export default class LightningTabBar extends LightningElement {
|
|
|
276
277
|
tab.tabIndex = 0;
|
|
277
278
|
|
|
278
279
|
this._selectedTab = tab;
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
//Case added specifically for the reactive property of active tab
|
|
282
|
-
this._selectTabAndFireSelectEvent(this._selectedTab.value);
|
|
283
|
-
if (this._hasOverflow) {
|
|
284
|
-
this._recomputeOverflow();
|
|
285
|
-
}
|
|
280
|
+
if (this._hasOverflow) {
|
|
281
|
+
this._queueOverflow();
|
|
286
282
|
}
|
|
287
283
|
}
|
|
288
284
|
|