Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

initialOpenItem is not working correctly #20

Open
saraElsanan opened this issue Oct 8, 2020 · 0 comments
Open

initialOpenItem is not working correctly #20

saraElsanan opened this issue Oct 8, 2020 · 0 comments

Comments

@saraElsanan
Copy link

I used the code included in the docs
<BulmaAccordion :icon="'custom'" :caret-animation="{ duration: '.6s', timerFunc: 'ease-in-out', }" :slide="{ duration: '.9s', timerFunc: 'ease', }" :initial-open-item="1" :dropdown="false" >

<BulmaAccordion :icon="'custom'" :caret-animation="{ duration: '.6s', timerFunc: 'ease-in-out', }" :slide="{ duration: '.9s', timerFunc: 'ease', }" :initial-open-item="2" :dropdown="false" > <!-- add as many of these items as you need - fill them with content via the slots --> <BulmaAccordionItem> <h4 slot="title">A title with content</h4> <i slot="icon" class="material-icons">more_vert</i> <p slot="content"> Lorem ipsum dolor sit amet consectetur adipisicing elit. Natus eos illo expedita asperiores rem iure aliquid dolore, pariatur dignissimos, minima inventore? Minima voluptatum nulla, error omnis laboriosam voluptatibus rem aperiam. </p> </BulmaAccordionItem> <BulmaAccordionItem> <h4 slot="title">A title with content</h4> <i slot="icon" class="material-icons">more_vert</i> <p slot="content"> Lorem ipsum dolor sit amet consectetur adipisicing elit. Natus eos illo expedita asperiores rem iure aliquid dolore, pariatur dignissimos, minima inventore? Minima voluptatum nulla, error omnis laboriosam voluptatibus rem aperiam. </p> </BulmaAccordionItem> </BulmaAccordion>

and the weird thing that I added only two items , but instead in the vue devtools i can see 3 items
image
so initialOpenItem is not working correctly and i had to give it 2 instead of 1 to be default opened

can you help me please ?

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

No branches or pull requests

1 participant