fix broken QF cancellation from editor instance (#5054)

Define missing cancel method on io object passed from the
editor instance to quickFormat dialog. Without this
Escape keypresses throws an error because io.cancel is
undefined.

Followup to #4859
This commit is contained in:
abaevbog 2025-02-21 12:13:41 -08:00 • committed by GitHub
parent 96e71762f9
commit 54346b0ca7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1149,6 +1149,14 @@ class EditorInstance {
}
},
/**
* Cancel changes to the citation
*/
cancel: function () {
this.citation.citationItems = [];
return this.accept();
},
/**
* Get a list of items used in the current document
* @return {Promise} A promise resolved by the items