Skip to content

Icon component does not support null value in tagName prop despite documentation and types say it does #6974

Closed
@alhimik45

Description

@alhimik45

Environment

  • Package version(s): "@blueprintjs/core": "^5.12.0"
  • Operating System: Arch Linux
  • Browser name and version: Firefox 129.0.2

Code Sandbox

Link to a minimal repro (fork this code sandbox): https://codesandbox.io/p/devbox/magical-dream-5fjckr

Actual behavior

Error in console Uncaught Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: null.

Expected behavior

Icon rendered without span wrapper

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