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

algolia / autocomplete.js / 546
90%

Build:
DEFAULT BRANCH: master
Ran 07 Aug 2018 03:11PM UTC
Jobs 1
Files 19
Run time 4s
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

pending completion
546

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

Jobs
ID Job ID Ran Files Coverage
1 546.1 (TEST_SUITE=unit) 07 Aug 2018 03:11PM UTC 0
88.84
Travis Job 546.1
Source Files on build 546
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #546
  • aa2edbb3 on github
  • Prev Build on master (#540)
  • Next Build on master (#547)
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