Proposed solution to isue 159 toggleSection in Firefox

This commit is contained in:
noliverio 2017-09-09 02:16:19 -04:00
parent b440b1a3e1
commit d8e7b9c40d

View file

@ -3,7 +3,7 @@ function toggleSection(event){
var dataSet = event.target.dataset; var dataSet = event.target.dataset;
var status = dataSet.open; var status = dataSet.open;
var masterElement = document.getElementById(event.srcElement.id); var masterElement = document.getElementById(event.target.id||event.srcElement.id);
var slaveElement = document.getElementById(dataSet.slaveelementid); var slaveElement = document.getElementById(dataSet.slaveelementid);
if (status === "false") { if (status === "false") {