}
_getPopperConfig() {
- let popperConfig = {
+ const popperConfig = {
placement: this._getPlacement(),
modifiers: {
offset: this._getOffset(),
}
}
- if (this._config.popperConfig) {
- popperConfig = {
- ...popperConfig,
- ...this._config.popperConfig
- }
+ return {
+ ...popperConfig,
+ ...this._config.popperConfig
}
-
- return popperConfig
}
// Static
onUpdate: data => this._handlePopperPlacementChange(data)
}
- let resultConfig = defaultBsConfig
- if (this.config.popperConfig) {
- resultConfig = {
- ...defaultBsConfig,
- ...this.config.popperConfig
- }
+ return {
+ ...defaultBsConfig,
+ ...this.config.popperConfig
}
-
- return resultConfig
}
_addAttachmentClass(attachment) {