• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

algolia / autocomplete.js / 546 / 1
90%
master: 90%

Build:
DEFAULT BRANCH: master
Ran 07 Aug 2018 03:11PM UTC
Files 19
Run time 3s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

07 Aug 2018 03:09PM UTC coverage: 88.842% (+0.04%) from 88.806%
TEST_SUITE=unit

push

travis-ci

web-flow
feat(clearOnSelected): allow users to clear the input instead of filling (#244)

* feat(clearOnSelected): allow users to clear the input instead of filling

In some use-cases, like when you're using autocomplete to make tags on a page, or using the output in any other way than prefilling the query, you don't want the suggested value to show in the input, but would rather like it to be empty.

Before this PR it was basically impossible to have your input not filled, since it came back on blur and a few different places (see `resetInputValue`

fixes #241

* fix: make sure both query and input are ''

* chore: update test

* chore: test implem of callback too

* chore: more specific test

836 of 941 relevant lines covered (88.84%)

40.21 hits per line

Source Files on job 546.1 (TEST_SUITE=unit)
  • Tree
  • List 0
  • Changed 7
  • Source Changed 4
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 541
  • Travis Job 546.1
  • aa2edbb3 on github
  • Prev Job for TEST_SUITE=unit on master (#540.1)
  • Next Job for TEST_SUITE=unit on master (#547.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc