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:


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 Scott González

Owner: set to jMagician
Status: newpending

I assume that as the error says, you have a null item. Please provide a reduced test case showing the problem.

comment:2 Changed 10 years ago by trac-o-bot

Resolution: invalid
Status: pendingclosed

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!

Note: See TracTickets for help on using tickets.