From c6bb6e3277c5252add4b0aac0fef0b02ade2da29 Mon Sep 17 00:00:00 2001 From: Baptiste Augrain Date: Sun, 23 Apr 2023 17:29:39 +0200 Subject: [PATCH 1/2] fix: hide url when opening link to new page/tab --- src/component/bookmarkTile/index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/component/bookmarkTile/index.js b/src/component/bookmarkTile/index.js index 252c9f8f..323c06ce 100644 --- a/src/component/bookmarkTile/index.js +++ b/src/component/bookmarkTile/index.js @@ -547,6 +547,10 @@ const BookmarkTile = function({ this.control.enable(); } else { this.control.disable(); + + this.element.content.link.addEventListener('click', () => { + this.element.content.link.blur(); + }); } }; From 7f417ebdb3a72dac4396fcba49a6ea860b780d32 Mon Sep 17 00:00:00 2001 From: Baptiste Augrain Date: Sat, 29 Apr 2023 16:23:30 +0200 Subject: [PATCH 2/2] fix: use mouseup instead of click --- src/component/bookmarkTile/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/component/bookmarkTile/index.js b/src/component/bookmarkTile/index.js index 323c06ce..79113b97 100644 --- a/src/component/bookmarkTile/index.js +++ b/src/component/bookmarkTile/index.js @@ -548,7 +548,7 @@ const BookmarkTile = function({ } else { this.control.disable(); - this.element.content.link.addEventListener('click', () => { + this.element.content.link.addEventListener('mouseup', () => { this.element.content.link.blur(); }); }