@codemirror/view 0.20.2 → 0.20.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/CHANGELOG.md +6 -0
- package/dist/index.cjs +3 -1
- package/dist/index.js +3 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -2880,7 +2880,8 @@ function computeCompositionDeco(view, changes) {
|
|
|
2880
2880
|
topView = topView.widget.topView;
|
|
2881
2881
|
else if (topView)
|
|
2882
2882
|
topView.parent = null;
|
|
2883
|
-
return Decoration.set(Decoration.replace({ widget: new CompositionWidget(node, textNode, topView) })
|
|
2883
|
+
return Decoration.set(Decoration.replace({ widget: new CompositionWidget(node, textNode, topView), inclusive: true })
|
|
2884
|
+
.range(newFrom, newTo));
|
|
2884
2885
|
}
|
|
2885
2886
|
class CompositionWidget extends WidgetType {
|
|
2886
2887
|
constructor(top, text, topView) {
|
|
@@ -5563,6 +5564,7 @@ class DOMObserver {
|
|
|
5563
5564
|
let key = this.delayedAndroidKey;
|
|
5564
5565
|
this.delayedAndroidKey = null;
|
|
5565
5566
|
let startState = this.view.state;
|
|
5567
|
+
this.readSelectionRange();
|
|
5566
5568
|
if (dispatchKey(this.view.contentDOM, key.key, key.keyCode))
|
|
5567
5569
|
this.processRecords();
|
|
5568
5570
|
else
|
package/dist/index.js
CHANGED
|
@@ -2874,7 +2874,8 @@ function computeCompositionDeco(view, changes) {
|
|
|
2874
2874
|
topView = topView.widget.topView;
|
|
2875
2875
|
else if (topView)
|
|
2876
2876
|
topView.parent = null;
|
|
2877
|
-
return Decoration.set(Decoration.replace({ widget: new CompositionWidget(node, textNode, topView) })
|
|
2877
|
+
return Decoration.set(Decoration.replace({ widget: new CompositionWidget(node, textNode, topView), inclusive: true })
|
|
2878
|
+
.range(newFrom, newTo));
|
|
2878
2879
|
}
|
|
2879
2880
|
class CompositionWidget extends WidgetType {
|
|
2880
2881
|
constructor(top, text, topView) {
|
|
@@ -5556,6 +5557,7 @@ class DOMObserver {
|
|
|
5556
5557
|
let key = this.delayedAndroidKey;
|
|
5557
5558
|
this.delayedAndroidKey = null;
|
|
5558
5559
|
let startState = this.view.state;
|
|
5560
|
+
this.readSelectionRange();
|
|
5559
5561
|
if (dispatchKey(this.view.contentDOM, key.key, key.keyCode))
|
|
5560
5562
|
this.processRecords();
|
|
5561
5563
|
else
|