Skip to content

Add ability to disable individual dropdown items#35

Open
tylersowards wants to merge 1 commit into
masterfrom
ts-disable-individual-dropdown-items
Open

Add ability to disable individual dropdown items#35
tylersowards wants to merge 1 commit into
masterfrom
ts-disable-individual-dropdown-items

Conversation

@tylersowards
Copy link
Copy Markdown
Contributor

No description provided.

this.open();
this.markedItem = this.markedItem < this.filteredItems.length - 1 ? this.markedItem + 1 : this.markedItem;
this.virtualScrollComponent.scrollInto(this.filteredItems[this.markedItem]);
this.markedItem = this.findNextNonCategoryItem(this.markedItem !== undefined ? this.markedItem + 1 : 0);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

What happens if you have 3 items with the middle item being disabled and the first item marked, but then you press the down key? Does it select nothing, or would it skip over the disabled item and select the next available item?

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.

2 participants