We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 97bab0f commit 9783ae8Copy full SHA for 9783ae8
index.js
@@ -5,5 +5,5 @@ function shim (element, value) {
5
return element.style.display === 'none'
6
}
7
8
- element.style.display = (value || null) && 'none'
+ element.style.display = value ? 'none' : ''
9
0 commit comments