We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c7645ee commit 5a5da39Copy full SHA for 5a5da39
src/components/tabs/tab-highlight.ts
@@ -15,10 +15,13 @@ export class TabHighlight {
15
constructor(private _elementRef: ElementRef, private _dom: DomController) {}
16
17
select(tab: Tab) {
18
+ if (!tab) {
19
+ return;
20
+ }
21
const dom = this._dom;
22
23
dom.read(() => {
- const btnEle: HTMLElement = tab.btn.getElementRef().nativeElement;
24
+ const btnEle: HTMLElement = tab.btn.getNativeElement();
25
const transform = `translate3d(${btnEle.offsetLeft}px,0,0) scaleX(${btnEle.offsetWidth})`;
26
27
dom.write(() => {
0 commit comments