Open
Description
Steps to reproduce:
- Open the demo locally or via https://react-mentions.vercel.app/
- Go to Advanced options
- Click somewhere so that the MentionsInput is not focused
- Click on the button "focus programmatically"
- It works
- Now type something in the text field, click outside so that it is unfocused
- Click on the button "focus programmatically"
- It fails until you reload the page.
Expected behaviour:
Focus to work after you typed something in the text field
Observed behaviour:
Fails as soon as something was typed. The inputEl.current becomes null after you typed something.
Workaround:
Couldn't figure one out
Metadata
Metadata
Assignees
Labels
No labels