Skip to content

Commit ef2096e

Browse files
committed
fix
1 parent 2d9e8ac commit ef2096e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web_src/js/utils/dom.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export function toggleClass(el: ElementArg, className: string, force?: boolean)
4343
* @param el ElementArg
4444
* @param force force=true to show or force=false to hide, undefined to toggle
4545
*/
46-
export function toggleElem(el: ElementArg, force: boolean) {
46+
export function toggleElem(el: ElementArg, force?: boolean) {
4747
toggleClass(el, 'tw-hidden', !force);
4848
}
4949

0 commit comments

Comments
 (0)