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

Angular ng-select bug in Chrome when using tab navigation and no default empty option #4836

@vilmosioo

Description

@vilmosioo

There seems to be a weird bug when selecting values in Chrome on Windows using the keyboard only.

function MyCtrl($scope) {
    $scope.d = '';
    $scope.options = [1,2,3];
    $scope.d2 = '';
    $scope.options2 = [1,2,3];
}

<input><br>
<select ng-options="d for d in options" ng-model="d"></select><br>
<select ng-options="d for d in options2" ng-model="d2"></select><br>
<input>

JSFiddle:
http://jsfiddle.net/DrTCZ/4/

Steps to replicate:

  1. Click on first text field
  2. Press tab
  3. Using the keyboard, select 2
  4. Press tab
  5. Using the keyboard, select 2

Notice the value of the first dropdown.

Any help would be appreciated!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions