Skip to content

react-select throw a syntax error #3771

@eryue0220

Description

@eryue0220

Bug report

Current Behavior

If combines react-select and input component through shadcn/ui, it will throw an syntax error if type two chars that first char hit some options, but when types the second char and they didn't hit any options, it will throw a syntax error.

recoding.mov

Expected behavior

Don't throw a syntax error.

Reproducible example

https://github.com/eryue0220/shadcn-input-with-select-error

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