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

Select options navigation#28

Open
joshuarule wants to merge 2 commits intofreenas:masterfrom
joshuarule:select-options-navigation
Open

Select options navigation#28
joshuarule wants to merge 2 commits intofreenas:masterfrom
joshuarule:select-options-navigation

Conversation

@joshuarule
Copy link
Contributor

when navigating the select with arrow keys the options should scroll

Copy link
Contributor

@thibaultzanini thibaultzanini left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A little question otherwise it looks good to me.

this._highlightedOption = this.optionsOverlayComponent.templateObjects.options.iterations[newIndex % contentLength];

// scroll to element
var highlightedElement = this._highlightedOption.firstElement,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's only work if all options have the same height, it's not an issue in our case?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

but below i'm grabbing the highlightedElement.offsetTop so I don't believe the height changes will affect this.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants