Skip to content

Materials Attribute Not Responding Correctly #79

@oogwayjay

Description

@oogwayjay

I think there's an error with the ternary operator in the template. It should be as follows otherwise it'll try to use md-switch when material is not present:

(material ? '<md-switch class="ng-csv-import-header-switch" ng-model="header"></md-switch>' : '<input type="checkbox" ng-model="header"></div>') +

Orignal:
(material ?'<input type="checkbox" ng-model="header"></div>' : '<md-switch class="ng-csv-import-header-switch" ng-model="header"></md-switch>') +

The visible error is when material is not selected nothing will appear.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions