Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
initList = listEl => {
if (listEl) {
this.list = MDCList.attachTo(listEl);
}
};
initDrawer = drawerEle => {
if (!drawerEle) return;
this.list = MDCList.attachTo(drawerEle.querySelector('.mdc-list'));
this.list.wrapFocus = true;
};
initDrawer = drawerEle => {
if (!drawerEle) return;
const {match} = this.props;
if (match.params.type === 'dismissible' ||
match.params.type === 'modal') {
this.drawer = new MDCDrawer(drawerEle);
} else {
const list = MDCList.attachTo(drawerEle.querySelector('.mdc-list'));
list.wrapFocus = true;
}
};