Skip to content

Add forwardRef to defaultStyle #411

@jpalumickas

Description

@jpalumickas

After upgrading to 4.0.0, when we try to use ref with MentionsInput, to access MentionsInput functions, we this error:

Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?

Steps to reproduce:

  1. Add ref to MentionsInput

Expected behaviour:

Allow to use ref with MentionsInput to access class functions

Observed behaviour:

Error written above

Workaround:

Add forwardRef to defaultStyle might help

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions