canonical / canonical/react-components

`Modal`/`ConfirmationModal`: Maintain focus

Open
#1,059 1 comment 2 reactions 0 assignees View on GitHub
Accessibility Bug 🐛 P3 Triaged Triaged: v4
Dominant language
TypeScript
Stars
151
Forks
74
Avg merge
1d 2h
Merged PRs (30d)
11

Description

I have a `ConfirmationModal` or `Modal` with children - `Input` and `TextArea` components. When I focus into the text area and begin to type, there's some sort of re-render, the focus keeps getting lost from the text area and returns to the input component.
![screencast-gif](https://github.com/canonical/react-components/assets/60344294/6ad92a8b-8eb3-4971-a24d-19c175dbadb1)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.