This repository has been archived by the owner on May 13, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(task-selection): re-enable enter+tab pattern
To re-enable the established pattern of 'select a customer via enter and tabbing to next input, should open dropdown automatically' the optimized power-select needed some treatment.
- Loading branch information
1 parent
4c4d35e
commit 7a89517
Showing
2 changed files
with
9 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,15 @@ | ||
import { action } from "@ember/object"; | ||
import Component from "@glimmer/component"; | ||
|
||
export default class OptimizedPowerSelectComponent extends Component { | ||
get extra() { | ||
return this.args.extra ?? {}; | ||
} | ||
|
||
@action | ||
onFocus({ actions, isOpen }) { | ||
if (!isOpen) { | ||
actions.open(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters