Closed duane-j-wagner closed 1 year ago
Thanks for the issue. I can reproduce this behavior. I need to dig into this a bit more to see if this is an Ionic bug.
Explicitly tapping the textarea seems work fairly consistently, but programmatically focusing is flaky when it comes to scrolling the textarea into view.
Same problem
Hi everyone,
Does this issue still reproduce in Ionic 7?
I upgraded my test project to ionic 7.0.3 and it works bug free :)
Glad to hear the issue is resolved! I am going to close this, but let me know if you have questions. For those looking to upgrade to Ionic 7, here is a migration guide: https://ionicframework.com/docs/updating/7-0
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.
Prerequisites
Ionic Framework Version
Current Behavior
When a list of ion-items is made in a way to allow inline editing with an ion-textarea and an edit button is pressed. The code shows the text area and sets focus, but if the on-screen keyboard pops up over the text area, it fails to scroll into view. It works on Android, but not iOS.
A similar issue was marked as fixed in Ionic 4, but this is a bit different and a problem in Ionic 6. https://github.com/ionic-team/ionic-framework/issues/17847
Expected Behavior
Text area should scroll into view on touching the edit button.
Steps to Reproduce
The demo code is a slightly modified version of the Ionic list starter
Code Reproduction URL
https://github.com/duane-j-wagner/textareatest
Ionic Info
Additional Information
The demo also has a hack to get the setFocus call to work. It shouldn't need the timer.