Skip to content

Commit

Permalink
Refined link edit cancellation on analytics page
Browse files Browse the repository at this point in the history
refs https://github.com/TryGhost/Team/issues/2116

- ignores blur events when link is edited via keypress
  • Loading branch information
rishabhgrg committed Oct 21, 2022
1 parent 86a9695 commit 25f7664
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ghost/admin/app/components/posts/links-table.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}
Expand Down

0 comments on commit 25f7664

Please sign in to comment.