Skip to content

Commit

Permalink
Fix bug in getSelectionStyleValueForProperty (#777)
Browse files Browse the repository at this point in the history
  • Loading branch information
trueadm committed Oct 28, 2021
1 parent 671c29f commit dfac035
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/outline/src/helpers/OutlineSelectionHelpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ export function getSelectionStyleValueForProperty(
// if no actual characters in the end node are selected, we don't
// include it in the selection for purposes of determining style
// value
if (endOffset === 0 && node.is(endNode)) {
if (i !== 0 && endOffset === 0 && node.is(endNode)) {
continue;
}
if (isTextNode(node)) {
Expand Down

0 comments on commit dfac035

Please sign in to comment.