Skip to content
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

Native mobile: don't set caret when rich-text text will get trimmed #15021

Merged
merged 6 commits into from
Apr 17, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add missing spaces as per linter
  • Loading branch information
hypest committed Apr 17, 2019
commit a455dea8c7b29da479fd13ba20898679680fd8c6
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,7 @@ export class RichText extends Component {
if (! this.isIOS && this.willTrimSpaces( html )) {
// the html will get trimmed by the cleaning up functions in Aztec and caret position will get out-of-sync.
// So, skip forcing it, let Aztec just do its best and just log the fact.
console.warn("RichText value will be trimmed for spaces! Avoiding setting the caret position manually." + html);
console.warn( "RichText value will be trimmed for spaces! Avoiding setting the caret position manually." + html );
} else {
selection = { start: this.state.start, end: this.state.end };
}
Expand Down