prosemirror-view
Advanced tools
Comparing version
@@ -0,1 +1,7 @@ | ||
## 1.17.8 (2021-02-26) | ||
### Bug fixes | ||
Fix an issue where some user actions (such as enter on iOS) in a node whose content DOM element isn't it's top element could leave the DOM in a damaged state. | ||
## 1.17.7 (2021-02-22) | ||
@@ -2,0 +8,0 @@ |
{ | ||
"name": "prosemirror-view", | ||
"version": "1.17.7", | ||
"version": "1.17.8", | ||
"description": "ProseMirror's view component", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -195,2 +195,4 @@ import browser from "./browser" | ||
if (mut.type == "childList") { | ||
if (desc.contentDOM && desc.contentDOM != desc.dom && !desc.contentDOM.contains(mut.target)) | ||
return {from: desc.posBefore, to: desc.posAfter} | ||
let prev = mut.previousSibling, next = mut.nextSibling | ||
@@ -197,0 +199,0 @@ if (browser.ie && browser.ie_version <= 11 && mut.addedNodes.length) { |
@@ -202,3 +202,5 @@ import {DOMSerializer, Fragment, Mark} from "prosemirror-model" | ||
let atEnd | ||
if (this.contentDOM && this.contentDOM != this.dom && this.dom.contains(this.contentDOM)) { | ||
if (dom == this.dom) { | ||
atEnd = offset > domIndex(this.contentDOM) | ||
} else if (this.contentDOM && this.contentDOM != this.dom && this.dom.contains(this.contentDOM)) { | ||
atEnd = dom.compareDocumentPosition(this.contentDOM) & 2 | ||
@@ -205,0 +207,0 @@ } else if (this.dom.firstChild) { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
1506319
0.14%14059
0.09%