
Modern events calendar added with shortcode in new Raw Element.

Modern events calendar added with shortcode in new Raw Element.
Hi Phillip,
Aside from that error, is there any undesirable effects in the builder? It should work ok on the front end. It’s common for shortcodes to not always give the exact front end output because plugins will often only load scripts and styles after detecting the presence of the shortcode.
On frontend - everything is fine.
Did it break anything else in the builder though? I tried a couple MEC shortcodes and didn’t get any errors myself. I just want to make sure it’s not making anything else in the builder break. With MEC being an official extension we want to be more careful about that kind of thing, but due to the dynamic nature of the preview frame it might not work exactly like the front end all the time.
Sorry. Wrong info. Using Modern Event Calendar causes errors on frontend too.

Thanks for the update. Do you suspect this is related to the beta? If you post a link to a site I could check a bit closer.
Sure. Take a look.
Thank you! I’ve confirmed this is an issue in MEC. They’re not error handling correctly in that script:
if (typeof custom_month != undefined)
should be
if (typeof custom_month !== 'undefined')
If it’s not causing any adverse effects I’d recommend just leaving it alone. The MEC devs should be able to fix it in a future update.