Skip to content
This repository has been archived by the owner on Dec 17, 2019. It is now read-only.

[v12.0] Help Page content : accordion snippet looses animation after saving #102

Open
oBeeOne opened this issue Dec 3, 2019 · 0 comments

Comments

@oBeeOne
Copy link

oBeeOne commented Dec 3, 2019

Hi,
First, thanks for this module, very nice work.

I'm having a problem though. I'm trying to create a FAQ page and I want to use accordion snippet inside that page.
The issue is that when I save the page after editing, the accordion looses all dynamic functionnalities.
Thus, all tabs don't extend or collapse anymore. Seems like the save process removes some attributes inside html tags like "role" or "aria-toggle".
Here is a copy of the hmtl block added with the snippet

<div id="myCollapse" class="accordion" role="tablist"> <div class="card bg-white"> <a href="#" role="tab" data-toggle="collapse" aria-expanded="true" class="card-header o_default_snippet_text" data-parent="#myCollapse" data-target="#myCollapseTab1575379895585">Conditions d'utilisation</a> <div class="collapse show" role="tabpanel" id="myCollapseTab1575379895585">[...]

And here is my page after saving

<div id="myCollapse" class="accordion"><div class="card bg-white"><a href="#" class="card-header collapsed" title=""><b title="">Accéder à mon espace</b></a><div class="collapse" id="myCollapseTab1575297850054" style=""><div class="card-body">[...]

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant