-
Notifications
You must be signed in to change notification settings - Fork 126
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
Cursor moves to thought hidden by autofocus #1029
Comments
Only occurs on mobile, but you can reproduce it on desktop by forcing |
@shresthabijay Thank you for the solution! We should still do some forensic work to understand the bigger picture of this. When there is a discrete regression, it's important to identify the commit that broken to inform our fix. I have often fixed a regression only to realize I compromised the original behavior in some way. Usually it's better to identify why something stopped working rather than adding additional code to make it work again. I put it softly in the description, but I probably should have made it clear that it was a requirement :). Could you find out which commit broke this and why? Thanks! |
@raineorshine Understood. I opted to go with the fix as it was fairly easy. I will get back to you after I identify the commit that created the regression. |
@raineorshine The regression was introduced from this commit e12699e.
Also after this commit |
Great, thanks! Reference: #946
Makes sense
That sounds reasonable. I see you added the |
Regression prevention checklist: #946 (comment) |
…Fixes #960. Regression on prevent checklist: **Desktop:** - [x] Set selection on click from null cursor - [x] Set selection on cursorDown from null cursor - [x] Set selection clicking on empty space **Mobile:** - [x] Enter edit mode - [x] Preserve editing: false - [x] Preserve editing: true - [x] cursorBack on hidden element (#1029) - [x] Preserve editing clicking on child edge (#946, this issue) - [x] Preserve editing on switch app (#940) - [x] No uncle loop (#908) - [x] Auto-Capitalization on Enter (#999)
Issue still occurs when in edit mode :( I’m going to look at this myself since I got involved recently in trying to get everything passing in the regression checklist, so it’s fresh.
Most of the regressions are on mobile Safari so unfortunately we can't test with puppeteer. |
Is there any specific reason for not hiding the editable element for hidden thoughts? |
Maybe setting |
Steps to Reproduce
Current BehaviorThe cursor moves to the thought and enters edit mode. Expected BehaviorShould not enter edit mode when the cursor changes. |
Fixed and explained in #1135 |
Steps to Reproduce
c
sod
disappearsc
, to the right of whered
would be.Current Behavior
Cursor moves to
d
.Expected Behavior
Cursor should move to
b
.Tapping on empty space with no visible thoughts to the left or right should always activate
cursorUp
.The text was updated successfully, but these errors were encountered: