Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
componentDidMount() {
this.focusTrap_ = util.createFocusTrapInstance(
this.root_.querySelector(
MDCDialogFoundation.strings.DIALOG_SURFACE_SELECTOR
),
this.root_.querySelector(MDCDialogFoundation.strings.ACCEPT_SELECTOR)
)
this.foundation_ = this.getDefaultFoundation()
this.foundation_.init()
if (this.props.open) {
this.foundation_.open()
}
}
componentDidMount() {
this.focusTrap_ = util.createFocusTrapInstance(
this.root_.querySelector(
MDCDialogFoundation.strings.DIALOG_SURFACE_SELECTOR
),
this.root_.querySelector(MDCDialogFoundation.strings.ACCEPT_SELECTOR)
)
this.foundation_ = this.getDefaultFoundation()
this.foundation_.init()
if (this.props.open) {
this.foundation_.open()
}
}