Proposed solution to isue 159 toggleSection in Firefox #160

Merged
noliverio merged 1 commit from master into master 2017-09-11 21:13:19 +02:00

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") {