Skip to content

Commit

Permalink
Add further clarification to comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Siobhan committed Jun 29, 2022
1 parent 8354b80 commit 117288e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/rich-text/src/component/index.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -660,6 +660,7 @@ export class RichText extends Component {
// Check for and discard events during quick typing. Updating the selection during quick typing isn't
// necessary and can cause UI lags. (see https://github.com/WordPress/gutenberg/pull/41682.)
// Note, it's necessary to detect leading or trailing spaces to prevent them from being stripped.
// (see https://github.com/WordPress/gutenberg/pull/42046.)
const leadingOrTrailingSpace =
contentWithoutRootTag.charAt( 0 ) === ' ' ||
contentWithoutRootTag.substr( contentWithoutRootTag.length - 1 ) ===
Expand Down

0 comments on commit 117288e

Please sign in to comment.