Skip to content

Commit

Permalink
Fix buggy date input
Browse files Browse the repository at this point in the history
Didn't break what sveltejs#5004 fixed, hopefully didn't break anything else - no tests changed thei results after this change.
  • Loading branch information
Wojmis3 committed Sep 22, 2021
1 parent dad0284 commit 7c84de9
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/compiler/compile/render_dom/wrappers/Element/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -619,10 +619,8 @@ export default class ElementWrapper extends Wrapper {

this.attributes
.forEach(attr => {
const dependencies = attr.node.get_dependencies();

const condition = dependencies.length > 0
? block.renderer.dirty(dependencies)
const condition = attr.node.dependencies.size > 0
? block.renderer.dirty(attr.node.get_dependencies())
: null;

if (attr instanceof SpreadAttributeWrapper) {
Expand Down

0 comments on commit 7c84de9

Please sign in to comment.