Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ui5-input): cancel suggestion selection with ESC #2289

Merged
merged 2 commits into from
Oct 5, 2020

Conversation

ilhan007
Copy link
Member

@ilhan007 ilhan007 commented Oct 1, 2020

When the users navigates between the items with UP/DOWN, the value is updated and shows the currently previewed item,
Now, the user is able to "cancel" this selection by pressing ESC.

FIXES: #2254

@@ -624,6 +638,20 @@ class Input extends UI5Element {
}
}

_handleEscape() {
if (this.Suggestions && this.Suggestions._isItemOnTarget()) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I think that we should check if this.showSuggestions is set as well

Copy link
Contributor

@fifoosid fifoosid left a comment

Choose a reason for hiding this comment

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

The change looks fine to me

@ilhan007 ilhan007 requested a review from fifoosid October 5, 2020 10:58
@ilhan007 ilhan007 merged commit ef1fb40 into master Oct 5, 2020
@ilhan007 ilhan007 deleted the fix-input-handle-esc branch October 5, 2020 11:39
ilhan007 added a commit that referenced this pull request Oct 17, 2020
When the users navigates between the items with UP/DOWN, the value is updated and shows the currently previewed item,
Now, the user is able to "cancel" this selection by pressing ESC.

FIXES: #2254
ilhan007 added a commit that referenced this pull request Nov 11, 2020
When the users navigates between the items with UP/DOWN, the value is updated and shows the currently previewed item,
Now, the user is able to "cancel" this selection by pressing ESC.

FIXES: #2254
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.

[ui5-input] escape is not working properly
2 participants