Skip to content

Commit

Permalink
fix(element): do not bubble hashchange event
Browse files Browse the repository at this point in the history
fixes #6943
  • Loading branch information
nolimits4web committed Aug 30, 2023
1 parent 1cc359e commit 106a3d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/swiper-element.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ class SwiperContainer extends ClassToExtend {
: name.toLowerCase();
const event = new CustomEvent(eventName, {
detail: args,
bubbles: true,
bubbles: name !== 'hashChange',
cancelable: true,
});
this.dispatchEvent(event);
Expand Down

0 comments on commit 106a3d7

Please sign in to comment.