Skip to content

Doesn't support track by in ng-option #47

@tianxu0836

Description

@tianxu0836

It not working well with the latest version of the bootstrap select.

if you using ng-option like this:
ng-options="c.text for c in timeUnit track by c.value"
This piece of code causing problem.
function refresh(newVal) {
scope.$applyAsync(function () {
if (attrs.ngOptions && /track by/.test(attrs.ngOptions)) element.val(newVal);
element.selectpicker('refresh');
});
}

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