Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 71531

Mouse click not always working

$
0
0

@erl4nc wrote:

I’ve successfully implemented a leafletjs map with leaflet search control in my ionic 3 app. However, the search results returned by leaflet search control are not always selectable by mouse, i.e. clicking on a search result does nothing.

If I open the map page directly, the search results are not clickable. Mouse scrolls work in paging through search results. Keyboard up/down arrow + enter works in selecting a result. Clicking anywhere on the map first, then the search results become clickable and all subsequent searches are fine.

If I create a page with a link to the map page, click on the link, then the search results on the subsequent map page are clickable. If on the first page, I try an auto refresh such as navCtrl.push(‘map-page’), then the search results are not clickable.

Given that clicking anywhere on the map first makes the results selectable, I also tried

document.getElementById(‘map’).focus()
and
document.getElementById(‘map’).click()
but neither works

It feels like something is hijacking the click event but I cannot figure out what.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 71531

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>