Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix setMinLength not applying to typeahead #399

Merged
merged 1 commit into from
Oct 29, 2020

Conversation

rafraser
Copy link
Contributor

The implementation of setMinLength doesn't work properly - it doesn't actually apply the minLength property to the typeahead. An example of the correct functionality is seen in setLimit.

This PR fixes setMinLength by changing this._typeahead.options.minLength instead of this._typeahead.minLength.

  • briefly describe the changes in this PR
  • write tests for all new functionality (no new functionality)
  • run npm run docs and commit changes to API.md (no changes)
  • update CHANGELOG.md with changes under master heading before merging

Copy link
Collaborator

@andrewharvey andrewharvey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good spot.

@andrewharvey andrewharvey merged commit c15cb7b into mapbox:master Oct 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants