Merge pull request #160 from noliverio/master

Proposed solution to isue 159 toggleSection in Firefox
This commit is contained in:
Bill Bittner 2017-09-11 12:13:18 -07:00 committed by GitHub
commit e46fbf3d8d

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