Opened 10 years ago
Closed 10 years ago
#8476 closed bug (notabug)
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
Change History (2)
comment:1 Changed 10 years ago by
Owner: | set to jMagician |
---|---|
Status: | new → pending |
comment:2 Changed 10 years ago by
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.