mirror of https://github.com/ColorlibHQ/AdminLTE
parent
06b4e04d8b
commit
a1d87d9d4f
|
@ -83,7 +83,7 @@ const slideDown = (target: HTMLElement, duration = 500) => {
|
||||||
}, duration)
|
}, duration)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* TOOGLE */
|
/* TOGGLE */
|
||||||
const slideToggle = (target: HTMLElement, duration = 500) => {
|
const slideToggle = (target: HTMLElement, duration = 500) => {
|
||||||
if (window.getComputedStyle(target).display === 'none') {
|
if (window.getComputedStyle(target).display === 'none') {
|
||||||
slideDown(target, duration)
|
slideDown(target, duration)
|
||||||
|
|
Loading…
Reference in New Issue