Skip to content
This repository has been archived by the owner on May 30, 2024. It is now read-only.

Commit

Permalink
Merge pull request #188 from gwarnants/patch-1
Browse files Browse the repository at this point in the history
Doesn't work inside a display: none !important container
  • Loading branch information
andreruffert committed Nov 29, 2015
2 parents 147ee11 + 35fde71 commit 6f558ee
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/rangeslider.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,11 @@
inlineStyle[i] = hiddenParentNodes[i].style.cssText;

// visually hide
hiddenParentNodes[i].style.display = 'block';
if (hiddenParentNodes[i].style.setProperty) {
hiddenParentNodes[i].style.setProperty('display', 'block', 'important');
} else {
hiddenParentNodes[i].style.cssText += ';display: block !important';
}
hiddenParentNodes[i].style.height = '0';
hiddenParentNodes[i].style.overflow = 'hidden';
hiddenParentNodes[i].style.visibility = 'hidden';
Expand Down

0 comments on commit 6f558ee

Please sign in to comment.