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

New type extends 'select' setting error #112

Open
marksq opened this issue Apr 7, 2017 · 1 comment
Open

New type extends 'select' setting error #112

marksq opened this issue Apr 7, 2017 · 1 comment

Comments

@marksq
Copy link

marksq commented Apr 7, 2017

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?

@alesmit
Copy link

alesmit commented Sep 5, 2017

Same issue here...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants