0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00

Refined link edit cancellation on analytics page

refs https://github.com/TryGhost/Team/issues/2116

- ignores blur events when link is edited via keypress
This commit is contained in:
Rishabh 2022-10-21 17:05:48 +05:30
parent 86a9695ccb
commit 25f76642b3

View file

@ -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();
}
}