fx-compat: Item box: Prevent editor from reopening after close

We did need to reset _lastTabIndex as the line removed in fbc25834 did, but
only immediately surrounding the saveTx() call.
This commit is contained in:
Abe Jellinek 2022-08-05 12:10:16 -04:00
parent 57abea5416
commit cb14564174

View file

@ -1997,7 +1997,10 @@
} }
if (this.saveOnEdit) { if (this.saveOnEdit) {
let savedTabIndex = this._lastTabIndex;
this._lastTabIndex = -1;
await this.item.saveTx(); await this.item.saveTx();
this._lastTabIndex = savedTabIndex;
} }
} }