From eab3beaf2a5deb84a8f5831d7dcf58b4f0e2d93d Mon Sep 17 00:00:00 2001 From: the-djmaze <> Date: Mon, 8 May 2023 10:36:23 +0200 Subject: [PATCH] Bugfix: node is null --- vendors/squire/build/squire-raw.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vendors/squire/build/squire-raw.js b/vendors/squire/build/squire-raw.js index 0a83aa740..6ad14be89 100644 --- a/vendors/squire/build/squire-raw.js +++ b/vendors/squire/build/squire-raw.js @@ -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', {