mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 17:30:09 +02:00
Merge pull request #15369 from calixteman/update_params
[Editor] Avoid to update default params too early
This commit is contained in:
commit
54d3b64497
1 changed files with 4 additions and 0 deletions
|
@ -658,6 +658,10 @@ class AnnotationEditorUIManager {
|
||||||
* @param {*} value
|
* @param {*} value
|
||||||
*/
|
*/
|
||||||
updateParams(type, value) {
|
updateParams(type, value) {
|
||||||
|
if (!this.#editorTypes) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
for (const editor of this.#selectedEditors) {
|
for (const editor of this.#selectedEditors) {
|
||||||
editor.updateParams(type, value);
|
editor.updateParams(type, value);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue