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

Opening the dropdown would not scroll to the selected item #2070

Open
kidroca opened this issue Oct 25, 2017 · 1 comment
Open

Opening the dropdown would not scroll to the selected item #2070

kidroca opened this issue Oct 25, 2017 · 1 comment

Comments

@kidroca
Copy link

kidroca commented Oct 25, 2017

Bug description:

Currently the drop down won't scroll to the selected item for these 2 cases:

1. In combination with ngAnimate

  • Add ngAnimate as module dependency
  • Create an ui-select with ng-model that has initial value
  • Click to toggle the dropdown open
  • Not scrolled to active item

2. When configured with uiSelectConfig.resetSearchInput = false

  • Configure ui-select with uiSelectConfig.resetSearchInput = false (or define on component)
  • Create an ui-select with ng-model that has initial value
  • Click to toggle the dropdown open
  • Not scrolled to active item

Link to minimally-working plunker that reproduces the issue:

Here is a plunk that reproduces the issue: https://plnkr.co/edit/n9jwLCyUv87Ba3vPgOvu

Version of Angular, UI-Select, and Bootstrap/Select2/Selectize CSS

  • angularjs: 1.6.1, 1.6.5
  • uiSelect: 0.19.8

Bootstrap/Select2/Selectize CSS (if applicable):

  • bootstrap 3.1.1
  • selectize 0.9.0

The issue is related to #976
There is a PR with covering tests about those 2 cases #2034

@ghost
Copy link

ghost commented Nov 29, 2017

Did anyone find a solution ? I have the same problem with the same angular and ui select versions as you

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

1 participant