You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Uncaught DOMException: Index or size is negative or greater than the allowed amount squire-raw.js:1659
linkifyText http://localhost:63342/Squire/dist/squire-raw.js:1659
Space http://localhost:63342/Squire/dist/squire-raw.js:1845
(Async: setTimeout handler)
Space http://localhost:63342/Squire/dist/squire-raw.js:1844
_onKey http://localhost:63342/Squire/dist/squire-raw.js:1906
fireEvent http://localhost:63342/Squire/dist/squire-raw.js:2331
handleEvent http://localhost:63342/Squire/dist/squire-raw.js:2303
(Async: EventListener.handleEvent)
addEventListener http://localhost:63342/Squire/dist/squire-raw.js:2350
Squire http://localhost:63342/Squire/dist/squire-raw.js:2130
<anonymous> http://localhost:63342/Squire/Demo.html?_ijt=v2lth7efi9vp5nvk8pc0gsmb1&_ij_reload=RELOAD_ON_SAVE:121
in cases where a link is added in the middle of a text node,
linkifyText will attempt to reset the selection to after
the linkified section and the inserted space that triggered
that linkification.
in some cases, this caused a DOMException with "Index or
size is negative or greater than the allowed amount"
setting the offset to 1 if the selection starts in
the same text node will put the cursor behind
the space that caused the linkification
fixfastmail#430
ganthern
added a commit
to ganthern/Squire
that referenced
this issue
Apr 19, 2023
in cases where a link is added in the middle of a text node,
linkifyText will attempt to reset the selection to after
the linkified section and the inserted space that triggered
that linkification.
in some cases, this caused a DOMException with "Index or
size is negative or greater than the allowed amount"
setting the offset to 1 if the selection starts in
the same text node will put the cursor behind
the space that caused the linkification
fixfastmail#430
the reason are the following lines:
Squire/source/keyboard/KeyHelpers.ts
Lines 127 to 133 in a8cd95a
I'm not sure what the exact bug is here.
tutao/tutanota#5339
The text was updated successfully, but these errors were encountered: