Skip to content

[bug] Carousel Component - Autoplay doesnt work when embedded into a card #647

@accforgithubtest

Description

@accforgithubtest

Introduction

I have a carousel component defined in its own sql file, which is embedded into a card using _sqlpage_embed.
Autoplay works when carousel component is its own independent page.

Autoplay in carousel doesn't work when embedded into a card using _sqlpage_embed.

To Reproduce

List of steps to reproduce the behavior.

  • MariaDB database connection.
  • SQLPage via docker (vanilla set-up)

carousel.sql

select 
    'carousel' as component,
    12 as width,
    true as fade,
    true as center,
    true as controls,
    true as auto;

select
    'https://upload.wikimedia.org/wikipedia/commons/thumb/2/29/Cat_Sphynx._Kittens._img_11.jpg/1024px-Cat_Sphynx._Kittens._img_11.jpg' as image;

select
    'https://upload.wikimedia.org/wikipedia/commons/thumb/2/29/Cat_Sphynx._Kittens._img_11.jpg/1024px-Cat_Sphynx._Kittens._img_11.jpg' as image;

select 
    'https://upload.wikimedia.org/wikipedia/commons/thumb/e/ec/Cat_close-up_2004_b.jpg/1280px-Cat_close-up_2004_b.jpg' as image;

cards.sql

select 
	'card' as component;

select 
	'carousel.sql?_sqlpage_embed' as embed,
	8 as width,
	0 as margin;

Actual behavior

Autoplay in carousel doesn't work when embedded into a card using _sqlpage_embed, when opening the cards.sql url.

Expected behavior

Carousel will Autoplay the photos when embedded into the card.sql url.

Version information

  • OS: Docker latest on Ubuntu 22.04 LTS
  • Database: MariaDB latest (using docker)
  • SQLPage Version : v0.29.0

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