1
0
mirror of synced 2025-02-09 16:49:24 +03:00

Don't update results if maximumSelectionSize is 0

a maximumSelectionSize of zero means unlimited, which means 
we shouldn't be updating results if it's set to 0
This commit is contained in:
Stephen Starkey 2013-03-05 10:31:28 -06:00
parent 4a3d3c88ac
commit e7f2aeaf08

View File

@ -2325,7 +2325,7 @@ the specific language governing permissions and limitations under the Apache Lic
if (this.countSelectableResults()>0) {
this.search.width(10);
this.resizeSearch();
if (this.val().length >= this.getMaximumSelectionSize()) {
if (this.getMaximumSelectionSize() > 0 && this.val().length >= this.getMaximumSelectionSize()) {
// if we reached max selection size repaint the results so choices
// are replaced with the max selection reached message
this.updateResults(true);