Skip to main content

Bug Tracker

Side navigation

#5598 closed bug (invalid)

Opened December 04, 2009 09:50PM UTC

Closed December 10, 2009 05:59AM UTC

[autocomplete] selectCurrent() -- wordAt is sometimes undefined after each loop

Reported by: docwhat Owned by:
Priority: major Milestone: 1.4
Component: plugin Version: 1.4a1
Keywords: Cc:
Blocked by: Blocking:
Description

How I reproduce it:

autoFill: true,

max: 100,

selectFirst: false,

mustMatch: true,

multiple: true,

multipleSeparator: ','

  • In a field that has "value1".
  • Enter ", value".
  • Wait for list of values ("value" through "value9")
  • Select "value2"
  • Press enter.
  • field now has "value1,value" in it.

I expected it to have"value1,value2" in it.

This is because wordAt is undefined by the time it comes out of the .each() on line 225.

Patch:

diff --git a/js/vivisimo.js b/js/vivisimo.js

index dbf68e0..b334544 100644

--- a/js/vivisimo.js

+++ b/js/vivisimo.js

@@ -5,7 +5,7 @@ if (typeof jQuery.fn.submitOnEnter === 'undefined') {

jQuery(this)

.listenForEnter()

.bind('pressedEnter', function() {

  • $(this).parent('form').submit();

+ jQuery(this).parent('form').submit();

});

});

};

Attachments (0)
Change History (1)

Changed December 10, 2009 05:59AM UTC by john comment:1

resolution: → invalid
status: newclosed

We don't accept plugin bugs here anymore.