@textbus/platform-browser 5.3.1 → 5.3.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.
- package/dist/index.esm.js +5 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1541,6 +1541,10 @@ var ExperimentalCaret = /*#__PURE__*/ function() {
|
|
|
1541
1541
|
nativeRange.selectNodeContents(compositionNode);
|
|
1542
1542
|
nativeRange.collapse();
|
|
1543
1543
|
}
|
|
1544
|
+
this.caret.style.display = nativeRange.collapsed ? 'block' : 'none';
|
|
1545
|
+
if (!nativeRange.collapsed) {
|
|
1546
|
+
return;
|
|
1547
|
+
}
|
|
1544
1548
|
var rect = getLayoutRectByRange(nativeRange);
|
|
1545
1549
|
var _getComputedStyle = getComputedStyle(node), fontSize = _getComputedStyle.fontSize, lineHeight = _getComputedStyle.lineHeight, color = _getComputedStyle.color, writingMode = _getComputedStyle.writingMode;
|
|
1546
1550
|
var height;
|
|
@@ -1667,7 +1671,7 @@ exports.MagicInput = /*#__PURE__*/ function(Input) {
|
|
|
1667
1671
|
}
|
|
1668
1672
|
}));
|
|
1669
1673
|
});
|
|
1670
|
-
_this.caret.elementRef.
|
|
1674
|
+
_this.caret.elementRef.prepend(_this.container);
|
|
1671
1675
|
return _this;
|
|
1672
1676
|
}
|
|
1673
1677
|
_create_class$3(MagicInput, [
|