Fix buggy date input

Didn't break what https://github.com/sveltejs/svelte/pull/5004 fixed, hopefully didn't break anything else - no tests changed thei results after this change.
pull/6758/head
Wojmis3 5 years ago
parent dad0284771
commit 7c84de9299

@ -619,10 +619,8 @@ export default class ElementWrapper extends Wrapper {
this.attributes this.attributes
.forEach(attr => { .forEach(attr => {
const dependencies = attr.node.get_dependencies(); const condition = attr.node.dependencies.size > 0
? block.renderer.dirty(attr.node.get_dependencies())
const condition = dependencies.length > 0
? block.renderer.dirty(dependencies)
: null; : null;
if (attr instanceof SpreadAttributeWrapper) { if (attr instanceof SpreadAttributeWrapper) {

Loading…
Cancel
Save