Skip to content

undefined or null width/height results in match #3

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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