.text(`+ ${count - maxSearchResult} items...`)
        }
      } else {
        d3.select('#search-result')
          .style('visibility', 'hidden')
      }
    })
    .on('keyup', event => { // When press enter, select the first result
      if (event.keyCode === 13) {
        event.preventDefault()
        if (searchResult.length > 0) {
          d3.select('#search').property('value', '')
          d3.select('#search-result').style('visibility', 'hidden')
          selected.add(searchResult[0].id)
       