question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Galleria: update from empty to n images

See original GitHub issue

When you have a Galleria without images, and you update it (going to n images), we receive the following Javascript error:

Uncaught TypeError: Cannot read properties of undefined (reading 'slideShowActive')
    at ax.<computed>.<computed>._destroy (galleria.js?ln=primefaces&v=11.0.0:3:4355)
    at ax.<computed>.<computed>._destroy (jquery-plugins.js?ln=primefaces&v=11.0.0:14:1153)
    at ax.<computed>.<computed>.destroy (jquery-plugins.js?ln=primefaces&v=11.0.0:14:3881)
    at ax.<computed>.<computed>.remove (jquery-plugins.js?ln=primefaces&v=11.0.0:14:3365)
    at HTMLDivElement.aR (jquery-plugins.js?ln=primefaces&v=11.0.0:14:7288)
    at HTMLDivElement.dispatch (jquery.js?ln=primefaces&v=11.0.0:2:43064)
    at HTMLDivElement.v.handle (jquery.js?ln=primefaces&v=11.0.0:2:41048)
    at Object.trigger (jquery.js?ln=primefaces&v=11.0.0:2:71515)
    at S.fn.init.triggerHandler (jquery.js?ln=primefaces&v=11.0.0:2:72194)
    at Function.cleanData (jquery-plugins.js?ln=primefaces&v=11.0.0:14:219)

Environment:

  • PF Version: 11.0.0, 11.0.1, 11.0.2
  • JSF + version: Mojarra 2.3.14.SP04
  • Affected browsers: ALL

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:13 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
fcornelicommented, Mar 17, 2022

@melloware Thanks for the above code snippet. Works like a charm!

0reactions
fcornelicommented, May 1, 2022

MonkeyPatch solves it too, but you may not forget about it of course. 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Responsive Galleria - javascript - Stack Overflow
I'm trying to use this plugin Galleria in its responsive mode, which basically means it will re draw itself based on its container...
Read more >
Photo Galleria - Webb County
Larga Vista Community Center. Address: 5401 Cisneros. Laredo, Texas 78043. Get Directions. Phone: 956-523-5085. Fax: 956-795-0736. Mon-Fri 8am - 5pm.
Read more >
Galleria update by fileupload makes it disappear
I have a <p:fileUpload> and when I upload a new picture I want my galleria to update. The issue is that the galleria...
Read more >
Galleria's new owner says mall's 'not dead,' vows hard work to ...
Leo Karruli, new owner of The Johnstown Galleria, purchased the mall for $3 million at an online auction in August. Photo taken at...
Read more >
[Update] Galleria redevelopment approved by Redondo ...
The South Bay Galleria redevelopment project is on track, despite objections from the City of Lawndale, the Galleria's neighbor to the north.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found