feat: do not strip unknown element properties on restore (#8682)

This commit is contained in:
David Luzar 2024-10-21 22:56:22 +02:00 committed by GitHub
parent e957c8e9ee
commit 4cedf3d966
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 5 additions and 147 deletions

View file

@ -190,6 +190,10 @@ const restoreElementWithProperties = <
}
return {
// spread the original element properties to not lose unknown ones
// for forward-compatibility
...element,
// normalized properties
...base,
...getNormalizedDimensions(base),
...extra,