@textbus/platform-browser 5.3.0 → 5.3.2
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.esm.js
CHANGED
|
@@ -1537,6 +1537,10 @@ var ExperimentalCaret = /*#__PURE__*/ function() {
|
|
|
1537
1537
|
nativeRange.selectNodeContents(compositionNode);
|
|
1538
1538
|
nativeRange.collapse();
|
|
1539
1539
|
}
|
|
1540
|
+
this.caret.style.display = nativeRange.collapsed ? 'block' : 'none';
|
|
1541
|
+
if (!nativeRange.collapsed) {
|
|
1542
|
+
return;
|
|
1543
|
+
}
|
|
1540
1544
|
var rect = getLayoutRectByRange(nativeRange);
|
|
1541
1545
|
var _getComputedStyle = getComputedStyle(node), fontSize = _getComputedStyle.fontSize, lineHeight = _getComputedStyle.lineHeight, color = _getComputedStyle.color, writingMode = _getComputedStyle.writingMode;
|
|
1542
1546
|
var height;
|
|
@@ -1663,7 +1667,7 @@ var MagicInput = /*#__PURE__*/ function(Input) {
|
|
|
1663
1667
|
}
|
|
1664
1668
|
}));
|
|
1665
1669
|
});
|
|
1666
|
-
_this.caret.elementRef.
|
|
1670
|
+
_this.caret.elementRef.prepend(_this.container);
|
|
1667
1671
|
return _this;
|
|
1668
1672
|
}
|
|
1669
1673
|
_create_class$3(MagicInput, [
|