-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Fixing comment edits when cursor is in the middle #458
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
Conversation
|
Ready for review. |
|
Updated code and tested on web and ios. Ready for review 👍 |
AndrewGable
left a comment
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.
Looks good and tests well!
marcaaron
left a comment
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.
LGTM!
| // If it does let's update this.comment so that it matches the defaultValue that we show in textInput. | ||
| if (this.props.comment && prevProps.comment === '' && prevProps.comment !== this.props.comment) { | ||
| this.comment = this.props.comment; | ||
| } |
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.
NAB, it's bugging me a little that we can't do this in the constructor but not much we can do right now
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.
Yeah it's a little annoying but its the best i could think off such that we could still use debounce and have this.comment always be up to date.
ed8551f
|
Updated to address recent review comment. |
Fixes
#457
Tests