Skip to content

Conversation

@ikzhr
Copy link
Contributor

@ikzhr ikzhr commented Sep 29, 2021

Summary

When a row is inserted with inherited style, the style of the inserted row is immutable but the style should be mutable.
This PR solves #1813.

Test plan

npm run test:unit
npm run test:integration

Related to source code (for typings update)

Typings update is not required.

Note

I did not implement general deep-copy function because it's too complex for the purpose and the structure of style is known.
However, depending on the known structure weakens resistance to change of style structure so I think the style should be implemented as class with clone method for logic coherent in the future.

@Siemienik Siemienik self-requested a review October 7, 2021 14:16
Copy link
Member

@Siemienik Siemienik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @ikzhr, your changes resolve a problem with styles changes via reference (for rows) and make styles mutable. It looks good to me. 🥇

@Siemienik Siemienik merged commit da5e743 into exceljs:master Oct 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants