Skip to content

Error occurs when using optional chain on JS #22

@vogel0831

Description

@vogel0831

Uncaught error occurs if I use optional chain on my JS like bellow.
document.getElementById("example")?.addEventListener(...)
It resolved by using . instead of ?.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions