Skip to content

Commit

Permalink
fix: do not go to ad page on click on kebab
Browse files Browse the repository at this point in the history
  • Loading branch information
rasulov1337 committed Dec 20, 2024
1 parent 4dbe375 commit 19e6a2b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/AdCard/AdCard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ export default class AdCard extends ReactiveComponent {
) as HTMLButtonElement
).onclick = (e) => this.showOnMap(e);

(this.thisElement.querySelector('.js-kebab') as HTMLElement).onclick = (
e
) => e.stopPropagation();

setTimeout(() => {
this.addImageScrolling();
}, 0); // setTimeout ensures the code will be called AFTER browser finished rendering innerHTML new content
Expand Down

0 comments on commit 19e6a2b

Please sign in to comment.