Sometimes I have this js error:
Uncaught TypeError: Cannot read property 'length' of null
It can reproduce, if we use the Addressfield Autocomplete module with Modal forms.

Comments

tibezh created an issue. See original summary.

tibezh’s picture

File addressfield_autocomplete.js line 343

tibezh’s picture

Status: Active » Needs review
StatusFileSize
new856 bytes

Here is a patch for fix this error.
Also I have removed whitespace line ending in js file.

  • adammitchell committed 4865fcc on 7.x-1.x
    Issue #2579143 by tibezh: Uncaught TypeError: Cannot read property '...
adammitchell’s picture

Hi Tibezh,

Thank you for bringing this to my attention. I have committed a fix, I don't believe it needed to be as specific as the one in your patch.

To be honest the js really needs some TLC as it is becoming a little out of hand. I am going to have to spend some time on it.

If you get chance to review this that would be great.

Cheers,

Adam