-
Notifications
You must be signed in to change notification settings - Fork 124
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
Bullet/Editable: Use fastClick for clickHandler #2752
base: main
Are you sure you want to change the base?
Changes from all commits
23ee553
27dddfb
e2ab83f
5d6a76b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,6 +51,7 @@ const useEditMode = ({ | |
selection.clear() | ||
} else { | ||
selection.set(contentRef.current, { offset: editingCursorOffset || 0 }) | ||
if (isTouch && isSafari()) contentRef.current?.focus() | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not quite sure why this is necessary, but it was having the following problem on iOS Safari:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks, good catch. I'll create a separate issue to get to the bottom of this. |
||
} | ||
} | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The caret was getting positioned at the end of the thought somehow
onFocus
, so I wanted to preserve that behavioronTap
.