Skip to content
This repository has been archived by the owner on Apr 7, 2020. It is now read-only.

Events not firing if directive have an ID attribute #10

Closed
asaf050 opened this issue Jun 22, 2016 · 3 comments
Closed

Events not firing if directive have an ID attribute #10

asaf050 opened this issue Jun 22, 2016 · 3 comments

Comments

@asaf050
Copy link

asaf050 commented Jun 22, 2016

Hey,

All events are not working if leaflet directive have an ID attribute.
Here's an example fiddle of the bug:

http://jsfiddle.net/6hxffegq/15/

How can I solve it?

@josephbisaillon
Copy link

If you are still looking for the solution to this. You just need to name it in the event handler string.

$scope.$on('leafletDirectiveDraw.map.' + eventName, function(e, payload) {

$scope.$on('leafletDirectiveDraw.YOURMAPIDHERE.' + eventName, function(e, payload) {

@nmccready
Copy link
Contributor

@tallented can you post your work around to this problem.

@nmccready
Copy link
Contributor

apologies this is actually now fixed in 0.0.5

IllyaMoskvin added a commit to roundware/roundware-admin that referenced this issue Sep 18, 2017
IllyaMoskvin added a commit to roundware/roundware-admin that referenced this issue Sep 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants