inline-style-editor 1.4.2 → 1.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -5504,7 +5504,8 @@ function InlineStyleEditor$1($$anchor, $$props) {
|
|
|
5504
5504
|
"text",
|
|
5505
5505
|
"textPath",
|
|
5506
5506
|
"tref",
|
|
5507
|
-
"tspan"
|
|
5507
|
+
"tspan",
|
|
5508
|
+
"g"
|
|
5508
5509
|
];
|
|
5509
5510
|
|
|
5510
5511
|
const borderProps = [
|
|
@@ -5803,7 +5804,7 @@ function InlineStyleEditor$1($$anchor, $$props) {
|
|
|
5803
5804
|
const elem = elemDef[0];
|
|
5804
5805
|
const types = [];
|
|
5805
5806
|
|
|
5806
|
-
if (elem.firstChild && (elem.firstChild.nodeType === 3 || elem.firstChild.tagName === "tspan")) {
|
|
5807
|
+
if (elem.firstChild && (!elem.firstElementChild && elem.firstChild.nodeType === 3 || elem.firstChild.tagName === "tspan")) {
|
|
5807
5808
|
// Node.TEXT_NODE
|
|
5808
5809
|
types.push(typeText);
|
|
5809
5810
|
}
|