Fix apply callback running twice in diagnostic actions #13
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "double-apply"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
It looks like the apply handlers for lint diagnostic actions are getting run twice because it's being executed as part of the
onclickandonmousedownevents, which does not seem to be intentional (but please correct me if I'm wrong).See repro here: https://replit.com/@SergeiChestakov/cm-lint-apply
And demo below:
We do want that handler to avoid the click moving focus. Attached patch fixes this with a kludgey extra boolean variable instead.
ahh great that's the workaround we used internally haha thanks! looking forward to this being published
I've tagged 6.1.1
Pull request closed