10000 [autocomplete] panelClosingActions does not include escape key · Issue #6209 · angular/components · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
[autocomplete] panelClosingActions does not include escape key #6209
Closed
@willshowell

Description

@willshowell

Bug, feature request, or proposal:

Bug

Current

panelClosingActions doesn't emit an event for when the autocomplete is closed due to the escape key

Expected

if (event.keyCode === ESCAPE && this.panelOpen) {
  this._escapeKeyStream.next();
}

// ...

get panelClosingActions(): Observable<MdOptionSelectionChange> {
  return merge(
    this.optionSelections,
    this.autocomplete._keyManager.tabOut,
    this._outsideClickStream,
    this._escapeKeyStream
  );
}

What are the steps to reproduce?

https://plnkr.co/edit/R0CPBfwzKS54o5Fd7fsx?p=preview

What is the use-case or motivation for changing an existing behavior?

#3334 (comment)

Metadata

Metadata

Assignees

Labels

P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgent

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0