Skip to content
This repository was archived by the owner on Nov 28, 2022. It is now read-only.

Commit bad0bf6

Browse files
committed
🐛 Koenig - Fixed "Retry" link in embed card error message
refs TryGhost/Ghost#9724 - `element.contains(target)` was not reliably picking up the `<span>` inside the `<button>` element - added a fallback that searches the event path for the card component's ID
1 parent 5a54586 commit bad0bf6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/koenig-editor/addon/components/koenig-card.js

+1
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,7 @@ export default Component.extend({
259259

260260
// check if the click was in the card, on the plus menu, or on a modal
261261
if (this.element.contains(target)
262+
|| path.find(searchPath(`#${this.element.id}`))
262263
|| path.find(searchPath('[data-kg="plus-menu"]'))
263264
|| path.find(searchPath('.liquid-destination'))) {
264265
return;

0 commit comments

Comments
 (0)