Open ubaidisaev opened 5 years ago
Can't close Dialog modal by pressing ESC button
It seems like the Refs to that element is not part of the DOM yet when we call componentDidUpdate method. Adding tabIndex attribute and some delay before setting focus to that modal solve this problem.
Description
Can't close Dialog modal by pressing ESC button
Reproduce Steps
Solution
It seems like the Refs to that element is not part of the DOM yet when we call componentDidUpdate method. Adding tabIndex attribute and some delay before setting focus to that modal solve this problem.