Skip to content

Crash when selecting text on an abbreviation #588

@thundertheidiot

Description

@thundertheidiot

Describe the bug

Spamming click on an abbreviation crashes sable with this error

Error: can't access property "getBoundingClientRect", s.currentTarget is null

Reproduction

  1. find an abbreviation
  2. click on it rapidly, minimum a well executed triple click
Image

Expected behavior

Don't crash let me click in peace

Platform and versions

- OS: Linux x86_64
- Browser: Mozilla/5.0 (X11; Linux x86_64; rv:148.0) Gecko/20100101 Firefox/148.0
- Sable: v1.13.0-dev

Additional context

Automated Bug Report

Error occurred in the application.

Error Message

can't access property "getBoundingClientRect", s.currentTarget is null

Stacktrace

zoe/i/<@https://matrix.meowcloud.net/assets/index-BxE6myeC.js:108156:41
GF@https://matrix.meowcloud.net/assets/index-BxE6myeC.js:5247:39
d6@https://matrix.meowcloud.net/assets/index-BxE6myeC.js:5272:54
useState@https://matrix.meowcloud.net/assets/index-BxE6myeC.js:5643:16
N0e/Fr.useState@https://matrix.meowcloud.net/assets/index-BxE6myeC.js:363:24
zoe@https://matrix.meowcloud.net/assets/index-BxE6myeC.js:108155:22
c6@https://matrix.meowcloud.net/assets/index-BxE6myeC.js:5203:155
_6@https://matrix.meowcloud.net/assets/index-BxE6myeC.js:5883:42
OL@https://matrix.meowcloud.net/assets/index-BxE6myeC.js:7727:90
IL@https://matrix.meowcloud.net/assets/index-BxE6myeC.js:7465:17
D0e@https://matrix.meowcloud.net/assets/index-BxE6myeC.js:7459:31
x3@https://matrix.meowcloud.net/assets/index-BxE6myeC.js:7449:11
P6@https://matrix.meowcloud.net/assets/index-BxE6myeC.js:7237:83
AL@https://matrix.meowcloud.net/assets/index-BxE6myeC.js:7282:32
yh@https://matrix.meowcloud.net/assets/index-BxE6myeC.js:4597:19
$ge/Xa/<@https://matrix.meowcloud.net/assets/index-BxE6myeC.js:7142:29

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingbug/behaviourbehaviour bugpriority/mediuma issue with medium priority

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions