Skip to content

Failed to execute 'getComputedStyle' on 'Window': param 1 is not of type 'Element'. #219

Closed
@rejhgadellaa

Description

@rejhgadellaa

Hi there,

I'm trying to use your library but I'm getting an error:

Uncaught TypeError: Failed to execute 'getComputedStyle' on 'Window': parameter 1 is not of type 'Element'.
at HTMLBodyElement. (ElementQueries.min.js:421)

This is line 421:

var sensorStyles = window.getComputedStyle(element.resizeSensor, null);

So.. element.resizeSensor is not an element. I just checked and it's actually undefined :(

Any clue what's wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions