Skip to content

JS Error "joomla-hidden-mail" if Minify JS is enabled #245

@KarlBogen

Description

@KarlBogen

Hello everyone,
i have Joomla 4.2.5, Astroid 2.6.2 and Template One 2.6.2 installed.
When I save an email address in an article and minify JS/CSS, my console shows this error

Uncaught DOMException: CustomElementRegistry.define: 'joomla-hidden-mail' has already been defined as a custom element

Because the script (…joomla-hidden-mail.min.js” type=”module” …) is loaded in head tag and the dependent script (…joomla-hidden-mail-es5.min.js…) is loaded inside the minified script in the body tag.

Screenshot 2022-11-12 111745

Best regards
Karl

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions