mirror of
https://github.com/zotero/zotero.git
synced 2026-10-05 02:43:38 +00:00
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:
parent
96e71762f9
commit
54346b0ca7
1 changed files with 8 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue