Skip to content

Some controls fail to render due to Handlebars forbidding access to prototype properties and methods #6

@john-clarke

Description

@john-clarke

Components with certain properties/methods were no longer rendering because the handlebars templates had references to restricted properties/methods. An error message from handlebars pointed to this reference page. There doesn't appear to be a way to pass a second parameter (the runtime options) in the component this.template(data) call in order to override the default values for handlebars allowedProtoMethods and allowedProtoProperties.

For reference:
From version 4.6.0 on, Handlebars forbids accessing prototype properties and methods of the context object by default.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions