[BUGFIX]

Using custom templates can break JS validation

related: #61124