Don't try to change a key/value that's already about to be deleted

(closes #6366)
This commit is contained in:
Bryan Housel
2019-05-15 14:02:23 -04:00
parent dae2e46a8d
commit 7be09db9ef

View File

@@ -455,6 +455,10 @@ export function uiRawTagEditor(context) {
}
_pendingChange = _pendingChange || {};
// exit if we are currently about to delete this row anyway - #6366
if (_pendingChange[kOld] === undefined) return;
if (kOld) {
_pendingChange[kOld] = undefined;
}
@@ -474,6 +478,10 @@ export function uiRawTagEditor(context) {
if (isReadOnly(d)) return;
_pendingChange = _pendingChange || {};
// exit if we are currently about to delete this row anyway - #6366
if (_pendingChange[d.key] === undefined) return;
_pendingChange[d.key] = this.value;
scheduleChange();
}