mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
Bugfix: node is null
This commit is contained in:
parent
7b70117155
commit
eab3beaf2a
1 changed files with 1 additions and 1 deletions
2
vendors/squire/build/squire-raw.js
vendored
2
vendors/squire/build/squire-raw.js
vendored
|
|
@ -2669,7 +2669,7 @@ class Squire
|
||||||
newPath = (anchor && focus) ? (node ? getPath(focus, this._root) : '(selection)') : '';
|
newPath = (anchor && focus) ? (node ? getPath(focus, this._root) : '(selection)') : '';
|
||||||
if (this._path !== newPath) {
|
if (this._path !== newPath) {
|
||||||
this._path = newPath;
|
this._path = newPath;
|
||||||
this.fireEvent('pathChange', { path: newPath, element: isElement(node) ? node : node.parentElement });
|
this.fireEvent('pathChange', { path: newPath, element: (!node || isElement(node)) ? node : node.parentElement });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.fireEvent(range.collapsed ? 'cursor' : 'select', {
|
this.fireEvent(range.collapsed ? 'cursor' : 'select', {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue