Skip to content
This repository was archived by the owner on Apr 30, 2018. It is now read-only.

New type extends 'select' setting error #112

@marksq

Description

@marksq

Hello!

I use Ui-router, Formly and Formly Bootstrap Templates in my project and I have got the error:

image

Before this I had created the new type (as it was suggested in issue #67):

formlyConfig.setType({
    name: 'select-with-empty',
    extends: 'select',
    template: '<select class="form-control" ng-model="model[options.key]"><option value=""> </option></select>',
  });

The error appears when I open a state with form (which contains 'select-with-empty' type fields), then open an other state and then open the first state again. All of 'select-with-empty' type fields are hide, count of errors equals count of 'select-with-empty' type fields.

What is wrong? May be it's a question to Formly developers?

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