vue icon indicating copy to clipboard operation
vue copied to clipboard

bind style merge not as expected

Open yeli19950109 opened this issue 2 years ago • 4 comments

Version

2.7.14

Reproduction link

codesandbox.io

Steps to reproduce

click mStyle button twice

What is expected?

show red border-right and blue border-bottom

What is actually happening?

only show red border-right. is not similar as setAttribute but vue3 is similar like setAttribute


is this a bug?

yeli19950109 avatar Dec 15 '22 04:12 yeli19950109

@posva What he means is that the results of the two operations are inconsistent, but works fine in vue-core. This might be a bug.

edison1105 avatar Dec 15 '22 08:12 edison1105

Right, I misread

posva avatar Dec 15 '22 10:12 posva

can I take this bug and try fixing it?

ayush-pandey-9 avatar Dec 16 '22 10:12 ayush-pandey-9

After the border style is set for the element, the browser will automatically format the style when the border-* style is set. The code is optimized for style reuse, resulting in bugs image After adding border-bottom image

ljf1834 avatar Dec 16 '22 14:12 ljf1834