Skip to content

Commit 0385328

Browse files
committed
click events
1 parent 2e36a0d commit 0385328

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

assets/js/suggested-task.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -545,6 +545,7 @@ prplSuggestedTask = {
545545
if ( event.key === 'Enter' ) {
546546
event.preventDefault();
547547
event.stopPropagation();
548+
event.target.blur();
548549
return false;
549550
}
550551
},

classes/suggested-tasks/providers/class-user.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public function get_task_details( $task_data = [] ) {
8989
public function add_task_actions( $data = [], $actions = [] ) {
9090
$actions[] = [
9191
'priority' => 10,
92-
'html' => '<a class="prpl-tooltip-action-text" href="#" target="_self" onclick="this.closest(\'li.prpl-suggested-task\').querySelector(\'.prpl-task-title span\').focus();">' . \esc_html__( 'Edit', 'progress-planner' ) . '</a>',
92+
'html' => '<a class="prpl-tooltip-action-text" href="#" target="_self" onclick="event.preventDefault();this.closest(\'li.prpl-suggested-task\').querySelector(\'.prpl-task-title span\').focus();">' . \esc_html__( 'Edit', 'progress-planner' ) . '</a>',
9393
];
9494

9595
return $actions;

0 commit comments

Comments
 (0)