Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jekuer committed Sep 18, 2023
1 parent e2484cf commit 678d2db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/atcb-init.js
Original file line number Diff line number Diff line change
Expand Up @@ -530,13 +530,13 @@ function atcb_action(data, triggerElement, keyboardTrigger = false) {
elem.innerHTML = template;
host.shadowRoot.append(elem.content.cloneNode(true));
const rootObj = host.shadowRoot.querySelector('.atcb-initialized');
atcb_setup_state_management(data);
atcb_set_light_mode(host.shadowRoot, data);
host.shadowRoot.querySelector('.atcb-initialized').setAttribute('lang', data.language);
atcb_load_css(host.shadowRoot, rootObj, data.buttonStyle, false, false, data.customCss);
// set global event listeners
atcb_set_global_event_listener(host.shadowRoot, data);
}
atcb_setup_state_management(data);
// if all is fine, ...
// trigger link at the oneoption case, or ...
if (oneOption) {
Expand Down

0 comments on commit 678d2db

Please sign in to comment.