Skip to content

Commit

Permalink
fix init logic for button.
Browse files Browse the repository at this point in the history
  • Loading branch information
wildone committed May 23, 2024
1 parent 887a128 commit 7559bf3
Showing 1 changed file with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -138,28 +138,32 @@ window.Typerefinery.Page.Events = Typerefinery.Page.Events || {};
case "action":
//FIXME: need to convert these to events.
switch (actionType) {
case "openModal":
modalNs.init($component, componentConfig);
break;
//NOTE: handled in on click.
// case "openModal":
// modalNs.init($component, componentConfig);
// initEvents = false;
// break;
case "openDropdown":
dropdownNs.init($component, componentConfig);
initEvents = false;
break;
case "initialTheme":
themeNs.init($component, componentConfig);
initEvents = false;
break;
case "toggleComponent":
toggleComponentNs.init($component, componentConfig);
initEvents = false;
break;
default:
break;
}
initEvents = false;
break;
default:
break;
}

console.log(["initEvents", initEvents]);

if (initEvents) {
console.log("adding event listeners");
Expand Down

0 comments on commit 7559bf3

Please sign in to comment.