Opened 14 years ago
Closed 14 years ago
#5598 closed bug (invalid)
[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();
});
});
};
Note: See
TracTickets for help on using
tickets.
We don't accept plugin bugs here anymore.