Skip to content

How to release the focus programmatically ? #723

@iroy2000

Description

@iroy2000

I'm having a component ( pseudo code )

<ComponentA>
   <ReactAutosuggest
      // ... some props
   />
  <Modal>
     <textarea></textarea>
  </Modal>
</ComponentA>

The problem I have is when the ReactAutosuggest is focus, I open the Modal, even though I programmatically do focus() on the textarea, the textarea is not focused.

Seems like to me the autosuggest is capturing the focus, how to programmatically release the focus ?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs clarificationIssue description is not clear enough to act on it.stale

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions