AnsweredAssumed Answered

Layer on click event not firing in Firefox but working fine in Chrome,Edge

Question asked by aazizmajid on Jul 9, 2018
Latest reply on Jul 9, 2018 by aazizmajid

Hi, This is my first time asking in community.


I am using ESRI JS API 3.24 in my application.


I am using following code to open specific URL within the application when click on the layer.


var lyrUrl = "Path_To_Layer";
var myLyr = new FeatureLayer(lyrUrl, {
id: "some_id",
mode: 1,
outFields: ['ID', 'Name_English']

//Code for the specific URL to open in a new window
myLyr.on("click", function(evt) {
var enName = myLyr._downGr.attributes.Name_English;'main/' + enName + '/index.html');

The issue is that the click event is working fine in chrome, Edge but not in Firefox. i mean not working is that when click on the layer, the link open in new page/tab but in Firefox, nothing happen at all. Can someone help me in this? Thanks.