From 411fe74f9a2db11c2dfe7903584d2f54f049b161 Mon Sep 17 00:00:00 2001 From: Dominic Gannaway Date: Thu, 28 Oct 2021 16:29:31 +0100 Subject: [PATCH] Fix bug in getSelectionStyleValueForProperty --- packages/outline/src/helpers/OutlineSelectionHelpers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/outline/src/helpers/OutlineSelectionHelpers.js b/packages/outline/src/helpers/OutlineSelectionHelpers.js index 08a2e748aaa..990a40b12f6 100644 --- a/packages/outline/src/helpers/OutlineSelectionHelpers.js +++ b/packages/outline/src/helpers/OutlineSelectionHelpers.js @@ -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)) {