mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -04:00
Fix image field not being saved if a mask is created too quickly (#3706)
* commit image field immediately in setupMaskEditor * use saveFieldNow instead
This commit is contained in:
parent
1bdd7f706f
commit
f0e67c4cd3
1 changed files with 3 additions and 0 deletions
|
@ -431,6 +431,9 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|||
imageOcclusionMode = options.mode;
|
||||
if (options.mode.kind === "add") {
|
||||
fieldStores[ioFields.image].set(options.html);
|
||||
// the image field is set programmatically and does not need debouncing
|
||||
// commit immediately to avoid a race condition with the occlusions field
|
||||
saveFieldNow();
|
||||
|
||||
// new image is being added
|
||||
if (isIOImageLoaded) {
|
||||
|
|
Loading…
Reference in a new issue