Skip to content

Commit

Permalink
Removed data- from onClick event show attribute and the expand attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
sreidthomas committed May 21, 2024
1 parent 47e0f48 commit 17e8169
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/atoms/OffcanvasHeader/OffcanvasHeader.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export default class OffcanvasHeader extends HTMLElement {
btnDark === 'true'
? this.closeBtn.setAttribute('extra-classes', 'btn-close-white')
: 0;
const expand = this.getAttribute('data-expand');
const expand = this.getAttribute('expand');
if (expand) {
expand === 'always'
? offcanvasHeaderClasses.push('navbar-expand')
Expand All @@ -75,6 +75,6 @@ export default class OffcanvasHeader extends HTMLElement {
_onClick() {
this.getRootNode()
.host.getRootNode()
.host.setAttribute('data-show', 'false');
.host.setAttribute('show', 'false');
}
}

0 comments on commit 17e8169

Please sign in to comment.