Skip to content

Commit

Permalink
fix: `Element' is not defined on server
Browse files Browse the repository at this point in the history
  • Loading branch information
Akryum committed Jan 8, 2024
1 parent 44d0108 commit 47eb20c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/floating-vue/src/components/PopperWrapper.vue
Expand Up @@ -69,6 +69,11 @@ import ThemeClass from './ThemeClass'
export type TriggerEvent = 'hover' | 'click' | 'focus' | 'touch'
let Element: any = function () {}
if (typeof window !== 'undefined') {
Element = window.Element
}
export default defineComponent({
name: 'VPopperWrapper',
Expand Down

0 comments on commit 47eb20c

Please sign in to comment.