Accordion-Blocks icon indicating copy to clipboard operation
Accordion-Blocks copied to clipboard

Decouple the JavaScript from the HTML structure

Open philbuchanan opened this issue 3 years ago • 0 comments

Currently the HTML structure is very specific and the JavaScript expects that specific structure (see use of .children(), instead of more general .find()). In some cases, other plugins wrap parts of the plugin's HTML with additional elements. This obviously breaks the accordion functionality.

A long term goal would be to decouple the JavaScript from the specific HTML structure, but this will require a much larger overhaul of both the HTML and JavaScript.

See this issue from the Support Forum for more.

philbuchanan avatar Mar 18 '21 14:03 philbuchanan