Skip to content

Commit

Permalink
Merge pull request #692 from chriskim2311/accessibility-tabbing-fix
Browse files Browse the repository at this point in the history
Fix tabbing order for accessibility users
  • Loading branch information
ain authored Oct 25, 2023
2 parents 1cf66a3 + 5f3e8fe commit f3c79ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/smartbanner.js
Original file line number Diff line number Diff line change
@@ -210,7 +210,7 @@ export default class SmartBanner {
}

let bannerDiv = document.createElement('div');
document.querySelector('body').appendChild(bannerDiv);
document.querySelector('body').prepend(bannerDiv);
bannerDiv.outerHTML = this.html;
let event = new Event('smartbanner.view');
document.dispatchEvent(event);

0 comments on commit f3c79ee

Please sign in to comment.