Autocomplete: lightning:accordion is missing options and lightning:accordionSection doesn't exist

Issue #1168 resolved
Jason Hardy created an issue


I was doing some lightning development today and I noticed that you're tags appear to be a bit out of date for lightning:accordion. Additionally, I didn't see any options for accordionSection. THe missing options for the main tag are:

allowMultipleSectionsOpen onsectiontoggle

The accordionSection isn't setup as an option at all:

Comments (2)

  1. Scott Wells repo owner

    Jason, I believe that lightning:accordion is good. Here's the definition in the XSD:

        <xsd:element name="accordion">
                <xsd:attribute name="activeSectionName" type="xsd:string"/>
                <xsd:attribute name="allowMultipleSectionsOpen" type="xsd:boolean"/>
                <xsd:attribute name="class" type="xsd:string"/>
                <xsd:attribute name="onsectiontoggle" type="xsd:string"/>
                <xsd:attribute name="title" type="xsd:string"/>

    You may need to use Ctrl+B/Cmd+B on an existing recognized element or attribute from that namespace to force the IDE to update its cache. That's due to a bug that I've logged with JetBrains where they cache their XSDs too aggressively and don't provide plugins a way to force expiration.

    You're correct about lightning:accordionSection, though. I'll include a fix for that in the next build.

  2. Log in to comment