Skip to content

Commit

Permalink
move active class to show
Browse files Browse the repository at this point in the history
  • Loading branch information
silverwind committed Apr 26, 2024
1 parent 1e1bfa8 commit fc6251e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion web_src/js/modules/fomantic/dimmer.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,13 @@ export function initFomanticDimmer() {
if (arg0 === 'add content') {
this._dimmer = document.createElement('div');
queryElemChildren(document.body, '.ui.dimmer', (el) => el.remove());
this._dimmer.classList.add('ui', 'dimmer', 'active', 'tw-hidden');
this._dimmer.classList.add('ui', 'dimmer', 'tw-hidden');
this._dimmer.append($el[0]);
document.body.append(this._dimmer);
} else if (arg0 === 'get dimmer') {
return $(this._dimmer);
} else if (arg0 === 'show') {
this._dimmer.classList.add('active');
showElem(this._dimmer);
document.body.classList.add('tw-overflow-hidden');
} else if (arg0 === 'hide') {
Expand Down

0 comments on commit fc6251e

Please sign in to comment.