fix(runtime-dom): consistently remove boolean attributes for falsy values (#4348)
This commit is contained in:
@@ -177,7 +177,7 @@ describe('ssr: element', () => {
|
||||
expect(getCompiledString(`<input type="checkbox" :checked="checked">`))
|
||||
.toMatchInlineSnapshot(`
|
||||
"\`<input type=\\"checkbox\\"\${
|
||||
(_ctx.checked) ? \\" checked\\" : \\"\\"
|
||||
(_ssrIncludeBooleanAttr(_ctx.checked)) ? \\" checked\\" : \\"\\"
|
||||
}>\`"
|
||||
`)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user