Skip to content

Commit

Permalink
fix(kpop): camel case placement (#1308)
Browse files Browse the repository at this point in the history
  • Loading branch information
Leopoldthecoder committed Apr 21, 2023
1 parent fcf8407 commit 110ecd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/KPop/KPop.vue
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ export default defineComponent({
// destroy any previous poppers before creating new one
this.destroy()
this.showPopper()
const placement = this.placement || 'auto'
const placement = (this.placement || 'auto').replace(/[A-Z]/g, '-$&').toLowerCase()
const popperEl = this.$refs.popper
const theTarget = (this.target && !this.isSvg && !!document.querySelector(this.target))
? document.querySelector(this.target)
Expand Down

0 comments on commit 110ecd6

Please sign in to comment.