From 25f76642b3870a581d29f24faafe4389b181e666 Mon Sep 17 00:00:00 2001 From: Rishabh Date: Fri, 21 Oct 2022 17:05:48 +0530 Subject: [PATCH] Refined link edit cancellation on analytics page refs https://github.com/TryGhost/Team/issues/2116 - ignores blur events when link is edited via keypress --- ghost/admin/app/components/posts/links-table.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ghost/admin/app/components/posts/links-table.js b/ghost/admin/app/components/posts/links-table.js index 6470ca5a4f4..75da6ae41f8 100644 --- a/ghost/admin/app/components/posts/links-table.js +++ b/ghost/admin/app/components/posts/links-table.js @@ -14,7 +14,7 @@ export default class LinksTable extends Component { @action handleBlur(event) { event?.preventDefault(); - if (!event?.relatedTarget?.matches('.gh-links-list-item-update-button')) { + if (this.editingLink && !event?.relatedTarget?.matches('.gh-links-list-item-update-button')) { this.cancelEdit(); } }