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; } }