Skip to content
This repository was archived by the owner on Oct 2, 2019. It is now read-only.
This repository was archived by the owner on Oct 2, 2019. It is now read-only.

required attribute not being placed on input #149

@zackarychapple

Description

@zackarychapple

I am using the following markup to make my select.

<ui-select ng-model="myOb.statesj" id="states" required>
    <ui-select-match placeholder="Select a state...">{{$select.selected.codeDescription}}</ui-select-match>
    <ui-select-choices repeat="item.codeId as item in constants.states | filter: $select.search">
        <div ng-bind-html="item.codeDescription | highlight: $select.search"></div>
    </ui-select-choices>
</ui-select>

Which generates the following input:

<input type="text" autocomplete="off" tabindex="-1" class="form-control ui-select-search ng-pristine ng-untouched ng-valid ng-hide" placeholder="Select an state..." ng-model="$select.search" ng-show="$select.open">

However it does not trigger a error state when nothing is selected.

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