Skip to content

Spread widget properties in vdom#717

Merged
agubler merged 2 commits into
dojo:masterfrom
agubler:function-widget-spread-properties
Apr 6, 2020
Merged

Spread widget properties in vdom#717
agubler merged 2 commits into
dojo:masterfrom
agubler:function-widget-spread-properties

Conversation

@agubler

@agubler agubler commented Apr 6, 2020

Copy link
Copy Markdown
Member

Type: bug

The following has been addressed in the PR:

Description:

Not spreading the properties in vdom when copying them to the wrappers properties can allow users to inadvertently mutate the property object so the diff fails and widgets are not updated as expected.

Comment thread tests/core/unit/vdom.tsx Outdated
});
});

it('should close properties', () => {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

clone?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

updated, thanks :D

@codesandbox-ci

codesandbox-ci Bot commented Apr 6, 2020

Copy link
Copy Markdown

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit a3f69f0:

Sandbox Source
dazzling-cori-n634x Configuration

@codecov

codecov Bot commented Apr 6, 2020

Copy link
Copy Markdown

Codecov Report

Merging #717 into master will not change coverage by %.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #717   +/-   ##
=======================================
  Coverage   97.75%   97.75%           
=======================================
  Files         120      120           
  Lines        6949     6949           
  Branches     1577     1577           
=======================================
  Hits         6793     6793           
  Misses        156      156           
Impacted Files Coverage Δ
src/core/vdom.ts 97.98% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 32bab69...a3f69f0. Read the comment docs.

@agubler agubler merged commit 46c893e into dojo:master Apr 6, 2020
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