Skip to content

Conversation

AlbinoDrought
Copy link

I was having issues when doing the following on a 'selectable' dropdown:

  • Populate a dropdown with items
  • Select an item
  • Change the items in the dropdown
  • Click the dropdown to select it again

It would call scrollIntoView(-1), because the this.selected item no longer existed in the current array of items.

I've added a clause to skip the scrolling if this occurs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant