Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
this.root.removeClass(className);
},
computeContentClientRect: () =>
this.content.ref
? this.content.ref.getBoundingClientRect()
: ({} as ClientRect),
setContentStyleProperty: (prop: string, value: string) => {
this.content.setStyle(prop, value);
}
};
if (this.props.transition === 'fade') {
return new MDCFadingTabIndicatorFoundation(adapter);
}
return new MDCSlidingTabIndicatorFoundation(adapter);
}
rootEl.removeClass(className);
},
computeContentClientRect: () =>
contentEl.ref
? contentEl.ref.getBoundingClientRect()
: emptyClientRect,
setContentStyleProperty: (prop: string, value: string) => {
contentEl.setStyle(prop, value);
}
};
if (props.transition === 'fade') {
return new MDCFadingTabIndicatorFoundation(adapter);
}
return new MDCSlidingTabIndicatorFoundation(adapter);
},
api: ({
constructor(private _hostElement: HTMLElement, private _document: Document) {
this._foundation = new MDCSlidingTabIndicatorFoundation(this._adapter);
}