Code to listen on map click:
map.on('click', function (evt) {
console.log('=============');
});
Code on select interaction:
const selectClick = new Select({
condition: click,
});
map.addInteraction(selectClick);
selectClick.on('select', function (e) {
console.log('-----------------');
});
The problem here is, when I click a feature on map, both click event and select event are fired.
----------------- and ============= are printed.
How to stop click event when a select event is fired?