mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-11-10 17:13:38 +08: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)') : '';
|
||||
if (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', {
|
||||
|
|
Loading…
Reference in a new issue