Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
setupDropdown(options) {
this.DROPDOWN = new Dropdown(this.PREVIEW.element, {
...options,
reference: this.element,
target: this.$panel,
hideOnSelect: false,
hideOutClick: true,
onShown: () => {
this.leave('save')
this.COLORPICKER.oldColor = this.COLORPICKER.color
this.GRADIENTPICKER.oldColor = this.GRADIENTPICKER.color
this.oldColor.module = this.module
this.oldColor.color = this.color
this.switchModule(this.module)
},
onHided: () => {
this.update()
}