primefaces / primevue

Next Generation Vue UI Component Library
https://primevue.org
MIT License
10.6k stars 1.23k forks source link

Dialog: Uncaught TypeError: getComputedStyle is not a function #4312

Closed NeluQi closed 1 year ago

NeluQi commented 1 year ago

Describe the bug

image

var getComputedStyle = getComputedStyle(_this2.container);

image

Drag window and error

on 3.30.0 work

Reproducer

no

PrimeVue version

3.32.1

Vue version

3.x

Language

TypeScript

Build / Runtime

Vue CLI App

Browser(s)

No response

Steps to reproduce the behavior

No response

Expected behavior

No response

melloware commented 1 year ago

Hmm looks SSR related? https://stackoverflow.com/questions/68995581/why-getcomputedstyle-method-does-not-work-properly-in-my-nuxt-app

melloware commented 1 year ago

Introduced with https://github.com/primefaces/primevue/pull/4252

Cc @Dmytro-Lukashenko

Dmytro-Lukashenko commented 1 year ago

Hi guys! I've fixed this bug. It was the incorrect naming of the variable. I've changed getComputedStyle to containerComputedStyle. @melloware could you please check it?