mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
feat: do not strip unknown element properties on restore (#8682)
This commit is contained in:
parent
e957c8e9ee
commit
4cedf3d966
3 changed files with 5 additions and 147 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue