export class Searchbar {

  constructor() {
    $('a.toggle-searchbar').on('click', $.proxy(this.toggleSearchbar, this));
  }

  toggleSearchbar() {
    $('.search-box').toggleClass('open');
    $('input[name=term]'.focus());
  }
}

export class Searchbar {

  constructor() {
    $('a.toggle-searchbar').on('click', $.proxy(this.toggleSearchbar, this));
  }

  toggleSearchbar() {
    $('.search-box').toggleClass('open');
    $('input[name=term]').focus();
  }
}

Fix focus in js selector searchbar
Fix focus in js selector searchbar
