Skip to content

step directive causing issues with input[type="number"] #32

@DevinClark

Description

@DevinClark

When attempting to use the step attribute on an input with the type of number, I get errors for the angular-wizard directive.

Error: [$compile:ctreq] Controller 'wizard', required by directive 'ngTransclude', can't be found!
http://errors.angularjs.org/1.2.15/$compile/ctreq?p0=wizard&p1=ngTransclude
    at http://dclark.local:4000/assets/js/portal.js:6297:12
    at getControllers (http://dclark.local:4000/assets/js/portal.js:12399:19)
    at nodeLinkFn (http://dclark.local:4000/assets/js/portal.js:12570:35)
    at http://dclark.local:4000/assets/js/portal.js:12789:13
    at http://dclark.local:4000/assets/js/portal.js:13952:11
    at deferred.promise.then.wrappedCallback (http://dclark.local:4000/assets/js/portal.js:17319:81)
    at deferred.promise.then.wrappedCallback (http://dclark.local:4000/assets/js/portal.js:17319:81)
    at http://dclark.local:4000/assets/js/portal.js:17405:26
    at Scope.$get.Scope.$eval (http://dclark.local:4000/assets/js/portal.js:18394:28)
    at Scope.$get.Scope.$digest (http://dclark.local:4000/assets/js/portal.js:18223:31) <section ng-show="selected" ng-class="{current: selected, done: completed}" class="step ng-isolate-scope ng-pristine ng-valid" ng-transclude="" type="number" name="index_value" ng-model="index_value" step="0.1"> 

My HTML is as follows:

<input type="number" name="index_value" ng-model="index_value" step="0.1">

I suggest the step directive be renamed to wz-step or something that does not conflict with a native HTML attribute.

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