DEV: Use caret up/down as they are computed values

This commit is contained in:
Isaac Janzen 2023-04-28 11:57:58 -05:00
parent a655a009fa
commit 57bcb55887
No known key found for this signature in database
GPG Key ID: D75AF9C21FD8EBCD
2 changed files with 4 additions and 2 deletions

View File

@ -73,6 +73,7 @@ export default Controller.extend(ModalFunctionality, {
@action
handleTextAreaKeydown(value, event) {
console.log(event);
if ((event.ctrlKey || event.metaKey) && event.key === "Enter") {
this.assign();
}

View File

@ -8,7 +8,6 @@
onChange=(action "assignUsername")
autofocus="autofocus"
showUserStatus=true
caretIcon="search"
options=(hash
mobilePlacementStrategy="absolute"
filterPlaceholder=placeholderKey
@ -21,6 +20,8 @@
autofocus=autofocus
tabindex=1
expandedOnInsert=(not assigneeName)
caretUpIcon="search"
caretDownIcon="search"
)
}}
{{#if this.assigneeError}}
@ -72,4 +73,4 @@
disabled=disabled
}}
<DModalCancel @close={{route-action "closeModal"}} />
</div>
</div>