Prerequisites
Ionic Framework Version
Current Behavior
When overlay is set to be closed by Escape key, overlay element is always focused in present() method, even if its descendant is already focused.
Expected Behavior
When overlay's descendant is already focused do not call focus on overlay's element.
Steps to Reproduce
- Create a component, that will be opened within modal
- Create render() and add ion-input
- Add componentDidLoad or listener for ionViewDidEnter and focus ion-input
Input will be focused for a moment, but will be blured just after that as the focus is shifted to overlay's element.
Code Reproduction URL
No response
Ionic Info
No response
Additional Information
No response