Fixed JS issue in Key => Value pairs when changing existing key name (#2539)

This commit is contained in:
NewKind
2020-04-27 13:44:44 +02:00
parent 86047fc6dd
commit 9bd848c5f2
4 changed files with 6 additions and 36431 deletions

View File

@@ -10,6 +10,7 @@
- PHP 7.4: implemented required `Stream::stream_set_option()` method for streams
- PHP 7.4: Fixed twig rendering errors (#2613)
- PHP 7.4: Fixed modifying particle settings throws an error (#2631)
- Fixed JS issue in Key => Value pairs when changing existing key name (#2539)
- Fixed grid breakpoint calculation overlaps not being tight enough (#2492)
- Helium: Headings should use title font instead of default (#2599)
1. [Joomla](#joomla)

4621
assets/common/js/main.js vendored

File diff suppressed because one or more lines are too long

View File

@@ -122,7 +122,9 @@ ready(function() {
if (keyElement == element) {
// renamed or cleared key, need to cleanup JSON
if (key !== keyValue && !duplicate) {
data.splice(index, 1);
if(typeof data[index] !== 'undefined') {
delete data[index][key];
}
keyElement.data('keyvalue-key', keyValue || '');
}

File diff suppressed because one or more lines are too long