From 6e0c3bdfbb182f52c25a5efd67402adbffbe1329 Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Tue, 24 Apr 2018 22:55:06 -0400 Subject: [PATCH] autofocus --- src/generators/nodes/Attribute.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/generators/nodes/Attribute.ts b/src/generators/nodes/Attribute.ts index 26e6321786..a049d0cbe2 100644 --- a/src/generators/nodes/Attribute.ts +++ b/src/generators/nodes/Attribute.ts @@ -287,7 +287,7 @@ export default class Attribute extends Node { block.builders.hydrate.addLine(statement); // special case – autofocus. has to be handled in a bit of a weird way - if (this.value === true && name === 'autofocus') { + if (this.isTrue && name === 'autofocus') { block.autofocus = node.var; } }