First off, lovely module! A welcome alternative to some of the other social icon modules out there.

I get a JS error on public-facing pages (where the block shows);

"Uncaught TypeError: Cannot read property 'checked' of null". At issue are two lines in the update_icons() function in simple_social_icons.js which use "document.getElementById('someid')" rather than "$('#someid'). I changed these to use the $ symbol and jQuery syntax.

Also, I noticed most of the file uses jQuery, so I think this line should too. jQuery is not enabled in D8 core by default though, so there's a (albeit small) chance someone installing this module would run into JS problems due to having jQuery disabled. So, I updated the libraries YAML file to declare this dependency on jQuery.

Comments

caspervoogt created an issue. See original summary.

caspervoogt’s picture

Here's a patch.

caspervoogt’s picture

n.kishorekumar’s picture

Assigned: Unassigned » n.kishorekumar
n.kishorekumar’s picture

Assigned: n.kishorekumar » Unassigned
Status: Active » Needs work

After applying this patch...

horizontal vertical tab are not working

n.kishorekumar’s picture

Status: Needs work » Needs review
StatusFileSize
new2.54 KB
heykarthikwithu’s picture

Status: Needs review » Reviewed & tested by the community

  • N.kishorekumar committed 29a87d2 on 8.x-1.x
    Issue #2725847 by caspervoogt, N.kishorekumar: JS 'uncaught type' error...
heykarthikwithu’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

caspervoogt’s picture

@heykarthikwithu I'm not sure which horizontal tabs you mean, but thanks for your patch. I applied it to the 2.x-dev version, which also suffered from this issue, and it applied cleanly.

caspervoogt’s picture

just ran into this on 3.x-dev and wrote a patch for that, using this new 3.x issue.