• Resolved tsteinh

    (@tsteinh)


    Just updated to 2.3.0 and there is a small issue that maybe is intended as a feature. In the past, the following code would open the first item:
    [accordion openfirst="true" clicktoclose="true"][accordion-item title="Title" state="closed"]

    Now it seems the state=”closed” on the first accordion-item overrides the openfirst setting on the accordion itself. Is this intentional? If I change the first item to state=”open”, it works as before. Is the openfirst deprecated?

    https://ww.wp.xz.cn/plugins/accordion-shortcodes/

Viewing 1 replies (of 1 total)
  • Plugin Author philbuchanan

    (@philbuchanan)

    state was never a supported setting on accordion items until v2.3.0 released this past weekend. openfirst is still fully supported but state on an individual item will override any global settings (including openfirst, openall etc). If you want the first item to be open by default you now have two options:

    [accordion openfirst=true] without setting state on the first accordion item.

    or

    [accordion-item title="" state=open] <– Set on the first accordion item in the group.

Viewing 1 replies (of 1 total)

The topic ‘2.3.0 update issue’ is closed to new replies.