Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions src/includes/vscode-select/vscode-select-base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,15 @@ export class VscodeSelectBase extends VscElement {
@property({type: String, reflect: true, attribute: 'aria-expanded'})
ariaExpanded = 'false';

/**
* Options can be filtered by typing into a text input field.
*/
@property({type: Boolean, reflect: true})
combobox = false;

/**
* The element cannot be used and is not focusable.
*/
@property({type: Boolean, reflect: true})
set disabled(newState: boolean) {
this._disabled = newState;
Expand Down Expand Up @@ -87,9 +93,15 @@ export class VscodeSelectBase extends VscElement {
return this._filter;
}

/**
* Its value is true when element is focused.
*/
@property({type: Boolean, reflect: true})
focused = false;

/**
* Toggle the dropdown visibility.
*/
@property({type: Boolean, reflect: true})
open = false;

Expand Down
3 changes: 0 additions & 3 deletions src/vscode-context-menu/vscode-context-menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -268,9 +268,6 @@ export class VscodeContextMenu extends VscElement {
return html`${nothing}`;
}

const selectedIndex =
this._clickableItemIndexes[this._selectedClickableItemIndex];

return html`
<div class="context-menu" tabindex="0">
${this.data
Expand Down