fix(runtime-dom): enable set form attr to null on form-elements (#2840) (#2849)

Co-authored-by: Eduardo San Martin Morote <posva@users.noreply.github.com>
Co-authored-by: Thorsten Lünborg <t.luenborg@googlemail.com>
This commit is contained in:
luwuer
2021-02-04 02:11:09 +08:00
committed by GitHub
parent 6b0a549725
commit f262438073
3 changed files with 18 additions and 4 deletions

View File

@@ -145,5 +145,8 @@ describe('runtime-dom: props patching', () => {
// non existant element
expect(el.form).toBe(null)
expect(el.getAttribute('form')).toBe('foo')
// remove attribute
patchProp(el, 'form', 'foo', null)
expect(el.getAttribute('form')).toBe(null)
})
})