Skip to content

undefined or null width/height results in match #3

Open
@navgarcha

Description

@navgarcha

Within the context of 'react-container-query', when passing initialSize={{ width: undefined }} or initialSize={{ width: null }} you get a true in matchQueries for that className to be applied.

I would think we'd want false to be set here wherever we have a none numerical value passed in. Granted you could do a check like initialSize={width && { width }} to get around this but this seems a bit verbose.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions