Search and Top Navigation
#8476 closed bug (notabug)
Opened August 04, 2012 11:13PM UTC
Closed August 20, 2012 08:47AM UTC
AutoComplete " Cannot read property 'label' of null"
Reported by: | jMagician | Owned by: | jMagician |
---|---|---|---|
Priority: | minor | Milestone: | 1.9.0 |
Component: | ui.autocomplete | Version: | 1.8.18 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Hello,
I am using jQuery UI 1.8.18 so i can use autocomplete function.
It works fine but at times, it throws excpetion from following method ,(line 6668)
$.extend( $.ui.autocomplete, {
escapeRegex: function( value ) {
return value.replace(/[-[\\]{}()*+?.,\\\\^$|#\\s]/g, "\\\\$&");
},
filter: function(array, term) {
var matcher = new RegExp( $.ui.autocomplete.escapeRegex(term), "i" );
return $.grep( array, function(value) {
return matcher.test( /*value.label || value.value || */ value );//exception is here if i uncomment
});
}
});
Exception is " Cannot read property 'label' of null".
As you can see that I have commented out the value.label and value.value for timebeing, it seems to be working fine.
Yet I am unclear of two things
1 - Why is this error happen some textboxes and not on others?
2 - Is it already fixed in new UI versions?
Thanks
Attachments (0)
Change History (2)
Changed August 06, 2012 01:27AM UTC by comment:1
owner: | → jMagician |
---|---|
status: | new → pending |
Changed August 20, 2012 08:47AM UTC by comment:2
resolution: | → invalid |
---|---|
status: | pending → closed |
Because we get so many tickets, we often need to return them to the initial reporter for more information. If that person does not reply within 14 days, the ticket will automatically be closed, and that has happened in this case. If you still are interested in pursuing this issue, feel free to add a comment with the requested information and we will be happy to reopen the ticket if it is still valid. Thanks!
I assume that as the error says, you have a null item. Please provide a reduced test case showing the problem.