Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rendering Issue with Splide in Elementor Editor on Chrome-Based Browsers #1252

Open
2 tasks done
Maycon-Duarte opened this issue Nov 13, 2023 · 0 comments
Open
2 tasks done
Labels
bug Something isn't working

Comments

@Maycon-Duarte
Copy link

Maycon-Duarte commented Nov 13, 2023

Checks

Version

4.1.4

Description

I am encountering a rendering issue specifically within the Elementor editor when using the Splide carousel for custom widgets. The problem appears to be exclusive to Chrome-based browsers, as the slide renders correctly in Firefox.

I found the following discussions on this subject but none of them solved the problem:

https://github.com/Splidejs/splide/discussions/611
https://github.com/GrapesJS/grapesjs/discussions/4062

Reproduction Link

No response

Steps to Reproduce

  1. Create a custom widget and import its dependencies according to the documentation https://developers.elementor.com/docs/widgets/add-new-widget/
  2. Use the widget initialization hook to run your code and render the slide with the splide
    https://developers.ementor.com/docs/hooks/js/#example-5
document.addEventListener('DOMContentLoaded', function () {
    window.addEventListener('elementor/frontend/init', function () {
        elementorFrontend.hooks.addAction('frontend/element_ready/slide_eventos.default', function ($scope) {
            let widget = $scope[0];
        });
    });
});
  1. open the element editor and add the created widget to the canvas

Expected Behaviour

I expect the Splide carousel to render seamlessly within the Elementor editor, ensuring a consistent experience across different browsers, including Chrome.

@Maycon-Duarte Maycon-Duarte added the bug Something isn't working label Nov 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant