Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
this.$nextTick(() => {
this.mdcMenuSurface = MDCMenuSurface.attachTo(this.$el)
this.mdcMenuSurface.setFixedPosition(this.fixed)
if (this._anchorCorner) {
this.mdcMenuSurface.setAnchorCorner(this._anchorCorner)
}
if (this.absolutePositionX !== null || this.absolutePositionY !== null) {
this.mdcMenuSurface.setAbsolutePosition(this.absolutePositionX, this.absolutePositionY)
}
if (this.hoistToBody) {
this.mdcMenuSurface.hoistMenuToBody()
}
this.mdcMenuSurface.setIsHoisted(this.isHoisted)
this.open ? this.mdcMenuSurface.getDefaultFoundation().open() : this.mdcMenuSurface.getDefaultFoundation().close()
})
},