8000 fix: should clear previous css string value by zh-lx · Pull Request #10373 · vuejs/core · GitHub
[go: up one dir, main page]

Skip to content

fix: should clear previous css string value #10373

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Feb 25, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: should clear previous css string value
  • Loading branch information
zh-lx committed Feb 21, 2024
commit 1c5cef10a7e9d3db1daf9cd7e1c2b7f940b0a6a6
2 changes: 1 addition & 1 deletion packages/runtime-dom/__tests__/patchStyle.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ describe(`runtime-dom: style patching`, () => {
expect(el.style.display).toBe('flex')
})

it('should clear previous css string value', async () => {
it('should clear previous css string value', () => {
const el = document.createElement('div')
patchProp(el, 'style', {}, 'color:red')
expect(el.style.cssText.replace(/\s/g, '')).toBe('color:red;')
Expand Down
0