Skip to content

Commit

Permalink
Fixed issue #258
Browse files Browse the repository at this point in the history
  • Loading branch information
Šuška Boris authored and yuku committed Sep 12, 2016
1 parent 4a74368 commit 7ab6c8c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ This project adheres to [Semantic Versioning](http://semver.org/) by version 1.0

This change log adheres to [keepachangelog.com](http://keepachangelog.com).

## master
### Fixed
- Fixed issue #258 Control gets stuck when callback function triggered with empty array ([#261](https://github.com/yuku-t/jquery-textcomplete/pull/261))

## [1.7.1] - 2016-08-29
### Added
- Build dist files
Expand Down
4 changes: 2 additions & 2 deletions src/dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,8 @@

render: function (zippedData) {
var contentsHtml = this._buildContents(zippedData);
var unzippedData = $.map(this.data, function (d) { return d.value; });
if (this.data.length) {
var unzippedData = $.map(zippedData, function (d) { return d.value; });
if (zippedData.length) {
var strategy = zippedData[0].strategy;
if (strategy.id) {
this.$el.attr('data-strategy', strategy.id);
Expand Down

0 comments on commit 7ab6c8c

Please sign in to comment.