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 keyUp event bug in ember-th #985

Merged
merged 3 commits into from
Apr 26, 2023

Conversation

chiaoyu-addepar
Copy link
Contributor

@chiaoyu-addepar chiaoyu-addepar commented Apr 24, 2023

In addon/components/ember-th/component.js there is a keyUp event which will trigger updateSort function with Enter key. However, the current code will show the error in the below screen shot when user hitting Enter ( when focusing on the header columns )
This PR is trying to fix this bug with providing a toggle: false in this.updateSort when being called in the keyUp event.

Screenshot 2023-04-24 at 8 51 29 AM

Reviewer note

not sure if we want to support the toggle the same way as in the click event
let toggle = event.ctrlKey || event.metaKey;

@mixonic
Copy link
Member

mixonic commented Apr 24, 2023

@chiaoyu-addepar the build is unblocked by #986. Please give this a rebase.

Copy link
Contributor

@c69-addepar c69-addepar left a comment

Choose a reason for hiding this comment

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

LGTM

@chiaoyu-addepar chiaoyu-addepar merged commit 194a503 into Addepar:master Apr 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants