Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
getDefaultFoundation() {
// prettier-ignore
return new MDCTabFoundation({
addClass: helper.addClass('rootProps', this),
removeClass: helper.removeClass('rootProps', this),
registerInteractionHandler: helper.registerHandler('rootProps', this),
deregisterInteractionHandler: helper.registerHandler('rootProps', this),
getOffsetWidth: () => this.root_.offsetWidth,
getOffsetLeft: () => this.root_.offsetLeft,
notifySelected: () => {
const tab = this
this.props.onSelected_({detail: {tab}})
this.props.onSelected(tab)
}
})
}