Checking for the type of event param before executing a lazy click (#22429)

This commit is contained in:
Phil Renaud
2024-05-31 13:24:22 -04:00
committed by GitHub
parent 014f5145dc
commit ddfadca618

View File

@@ -163,6 +163,9 @@ export default class IndexController extends Controller.extend(Sortable) {
@action
taskClick(allocation, task, event) {
if (!(event instanceof Event)) {
event = null;
}
lazyClick([() => this.send('gotoTask', allocation, task), event]);
}