vue-leaflet/Vue2Leaflet

@stop and @prevent not working on CircleMarker

開放

#548 建立於 2020年2月19日

 (2 則留言) (0 個反應) (0 位負責人)JavaScript (380 個分叉)batch import
bugconfirmedhelp wanted

倉庫指標

星標
 (1,942 顆星)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

Description

Can not stop propagation or prevent default on circle marker clicks. @click.stop and/or @click.prevent throw errors. Original event seems to be in an object called $event.originalEvent but calling preventDefault() and stopPropagation() doesn't have any effect on it.

Live Demo

https://jsfiddle.net/gulyamani/541bpcja/1/

Steps to Reproduce

Open console and click circle markers.

Expected Results

Only seeing 'marker click' on console.

Actual Results

Seeing both 'marker click' and 'map click'

Browsers Affected

  • Chrome
  • Firefox
  • Edge
  • Safari 9
  • Safari 8
  • IE 11

Versions

  • Leaflet: v1.6.0
  • Vue: v2.5.16
  • Vue2Leaflet: v2.2.1

貢獻者指南