Skip to content

Commit

Permalink
fix(edit-ema): 🐛 Custom Event select-contentlet is triggering twice o…
Browse files Browse the repository at this point in the history
…n ng-contentlet-selector #26958 (#27363)

* Fixed trigger twice on ng-contentlet-selector

* Modified ContentSelector.js. Revert changed on Angular app
  • Loading branch information
KevinDavilaDotCMS authored Jan 18, 2024
1 parent b5a86b8 commit 219a96c
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1295,12 +1295,10 @@ dojo.declare(
this.searchCounter + asset.inode
);
if (selectButton.onclick == undefined) {
selectButton.onclick = dojo.hitch(
this,
selected,
this,
asset
);
selectButton.onclick = dojo.hitch(this, function (event) {
event.stopPropagation();
selected(this, asset);
});
}
}
}
Expand Down

0 comments on commit 219a96c

Please sign in to comment.