LazyYT + Spoiler alert conflict breaks page

So, this post, containing a YouTube video inside a spoiler tag, seems to just completely break the page’s script (“Uncaught TypeError: Cannot read property ‘setAttribute’ of null”).

Running v1.5.8 beta 8.

Since the broken script makes it difficult to tell, this is the post in question, near the bottom of the page.

1 curtida

Sure can we repro @techapj?

1 curtida

Yes, I was able to repro this. Fixed via:

https://github.com/discourse/discourse-spoiler-alert/commit/1e771f775a6c7e96a255f65ea800b2ec25741ea7

2 curtidas