-
Notifications
You must be signed in to change notification settings - Fork 145
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
Fix insertion point and placeholder placement for TextInput #1322
Fix insertion point and placeholder placement for TextInput #1322
Conversation
974be5d
to
176b536
Compare
I think this change broke the auto-focus test case: Untitled-1.mov
Maybe the logic in |
Thanks for pointing this out. That's indeed an issue. We don't have atm as we also changed RTCTouchHandler. |
This pull request has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 7 days. It will be closed if no further activity occurs within 7 days of this comment. |
Don't close |
This pull request has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 7 days. It will be closed if no further activity occurs within 7 days of this comment. |
Gonna stop marking these where they get stale... |
176b536
to
8e3fbcc
Compare
The latest iteration fixes the problem for the RCTTouchHandler by applying another band-aid solution.
BOOL approach is not the best one. We have a large number RCTTouchHandler fixes - but also those are not yet in a state to upstream them ... mouseUp1080.mov |
This fixes issues where the insertion point (caret) would not initially render in the correct location for `TextInput` with padding. Also, for single-line inputs, the placeholder would also be in the wrong location.
8e3fbcc
to
ad03bd5
Compare
@chiuam could you take a second look? |
…1439) Co-authored-by: Christoph Purrer <[email protected]>
…t#1322) # Conflicts: # React/Base/RCTTouchHandler.m
…t#1322) # Conflicts: # React/Base/RCTTouchHandler.m
Please select one of the following
Summary
This fixes issues where the insertion point (caret) would not initially render in the correct location for
TextInput
with padding. Also, for single-line inputs, the placeholder would also be in the wrong location.Changelog
[macOS] [Fixed] - Fix insertion point and placeholder placement for TextInput
Test Plan
Set a padding of 10
Before
You must click to put the caret/insertionPointer in the correct location
before.mov
After
after.mov