Side navigation
#4925 closed bug (invalid)
Opened July 20, 2009 01:14AM UTC
Closed October 13, 2009 01:16AM UTC
[autocomplete] - bug in "currentValue"
Reported by: | joej | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | 1.4 |
Component: | unfiled | Version: | 1.3.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
in function onChange()
the currentValue can be "undefined"
So: fix the 'if' statment to:
if (currentValue && currentValue.length >= options.minChars) {
Example: minChars = 3 for me. So, type in 3 spaces and wait the delay period ... and boom: currentValue undefined, so currentValue.length fails
Attachments (0)
Change History (1)
Changed October 13, 2009 01:16AM UTC by comment:1
description: | \ in function onChange() \ the currentValue can be "undefined" \ \ So: fix the 'if' statment to: \ if (currentValue && currentValue.length >= options.minChars) { \ \ \ Example: minChars = 3 for me. So, type in 3 spaces and wait the delay period ... and boom: currentValue undefined, so currentValue.length fails \ → in function onChange() \ the currentValue can be "undefined" \ \ So: fix the 'if' statment to: \ if (currentValue && currentValue.length >= options.minChars) { \ \ \ Example: minChars = 3 for me. So, type in 3 spaces and wait the delay period ... and boom: currentValue undefined, so currentValue.length fails \ |
---|---|
resolution: | → invalid |
status: | new → closed |
This is not a jQuery core bug. Please use the jQuery forums or contact the author via the method they request. For jQuery UI plugins, please file a bug on http://dev.jqueryui.com .