-
Notifications
You must be signed in to change notification settings - Fork 13.5k
feat: add 'dir' as an inherited attribute to textareas and text inputs. #30193
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Since the |
Thank you for submitting this request! I have verified that the |
This has been resolved via PR #30102 and will be available in an upcoming release of Ionic. |
Closing this as 8.5.0 has been released. 🙂 Thanks again! |
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
Describe the Feature Request
Adding
dir
to a textarea or text input. (see PR #30102 )Describe the Use Case
It fixes the cursor position when you type in RTL languages on phones (tested on iPhone)
Let's say you have a native textarea without
dir
attribute (default value isltr
):when you type using RTL characters, your cursor position remains at the beginning (because of the default LTR value, it knows that the cursor should be at the right side of the text, but in RTL languages, it's wrong and should be at the left side):

We can fix it using
dir
attribute on it:Result:
Describe Preferred Solution
Adding
dir
to a textarea or text input as an inherited attribute.Describe Alternatives
No response
Related Code
I've created PR #30102 to add
dir
attribute as an inherited attr to textarea and text inputs.Additional Information
No response
The text was updated successfully, but these errors were encountered: