Skip to content

Commit

Permalink
🎨 clean up console logs
Browse files Browse the repository at this point in the history
  • Loading branch information
jiromaykin committed Feb 10, 2023
1 parent 36f617d commit c33434d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions src/open_inwoner/js/components/header/header.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ class Header extends Component {
bindEvents() {
this.node.addEventListener('keyup', this.onKeyUp.bind(this))
this.node.addEventListener('click', (e) => {
console.log('click in bindEvents')
if (
e.target.matches('.header__button') ||
e.target.matches('.header__button *')
Expand All @@ -42,15 +41,13 @@ class Header extends Component {
* @returns {HTMLButtonElement}
*/
getButton() {
console.log('getButton')
return BEM.getChildBEMNode(this.node, BLOCK_HEADER, ELEMENT_BUTTON)
}
/**
* Returns the menu controlled by the button.
* @returns {HTMLDialogElement}
*/
getSubMenu() {
console.log('getSubMenu')
return BEM.getChildBEMNode(this.node, BLOCK_HEADER, ELEMENT_SUBMENU)
}
/**
Expand All @@ -70,7 +67,6 @@ class Header extends Component {
* @param {Object} state State to render.
*/
render(state) {
console.log('render', state)
document.body.classList.add('body')
BEM.toggleModifier(document.body, MODIFIER_OPEN, state.open)
BEM.toggleModifier(this.getButton(), MODIFIER_OPEN, state.open)
Expand Down
2 changes: 1 addition & 1 deletion src/open_inwoner/scss/components/Header/Header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ $vm: var(--spacing-large);
z-index: 2;

@media (min-width: 768px) {
display: block;
display: none;
}
}
&__submenu::backdrop {
Expand Down

0 comments on commit c33434d

Please sign in to comment.