Blur active field in switchCreatorMode #2087 (#2088)

This commit is contained in:
Tom Najdek 2021-06-14 23:33:55 +02:00 committed by GitHub
parent f83559feb8
commit f1414731da
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1068,7 +1068,12 @@
fields.fieldMode = fieldMode;
this.modifyCreator(index, fields);
if (this.saveOnEdit) {
this.item.saveTx();
let activeField = this._dynamicFields.querySelector('textbox');
if (activeField !== null && activeField !== firstName && activeField !== lastName) {
this.blurOpenField();
} else {
this.item.saveTx();
}
}
}
]]>