question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

bug: first accordion in group does not have animation on close

See original GitHub issue

Bug Report

Ionic version:

[ ] 4.x [ ] 5.x [X] 6.x

Current behavior:

When opening the accordion there is animation but when closing the accordion back the ion-icon has animation but the ion-list does not have any animation on iOS. I have screen recorded on iOS to have a clearer idea on the issue (https://youtu.be/mxoMoRZsWW0) Expected behavior:

The accordion should have the same closing animation as when you open the accordion Steps to reproduce:

Related code:

<ion-accordion-group>
          <ion-accordion value="search">
            <ion-item slot="header">
              <ion-icon class="ion-padding-end" name="filter-outline"></ion-icon>
              <ion-label>Search Criteria</ion-label>
            </ion-item>

            <ion-list slot="content">
              <ion-item lines="none" class="ion-no-padding">
                <ion-searchbar enterkeyhint="search" placeholder="Player username"
                  [(ngModel)]="searchCriteria.searchTerm">
                </ion-searchbar>
              </ion-item>

              <ion-item lines="none">
                <ion-label position="stacked">Account Type</ion-label>
                <ion-select [(ngModel)]="searchCriteria.accountType" interface="popover">
                  <ion-select-option value="epic">Epic Games</ion-select-option>
                  <ion-select-option value="psn">Playstation</ion-select-option>
                  <ion-select-option value="xbl">XBox</ion-select-option>
                </ion-select>
              </ion-item>

              <ion-item lines="none">
                <ion-label position="stacked">Time Window</ion-label>
                <ion-select [(ngModel)]="searchCriteria.timeWindow" interface="popover">
                  <ion-select-option value="season">Season</ion-select-option>
                  <ion-select-option value="lifetime">Lifetime</ion-select-option>
                </ion-select>
              </ion-item>

              <ion-item lines="none">
                <ion-label position="stacked">Generate Image</ion-label>
                <ion-select [(ngModel)]="searchCriteria.image" interface="popover">
                  <ion-select-option value="none">None</ion-select-option>
                  <ion-select-option value="all">All</ion-select-option>
                  <ion-select-option value="keyboardMouse">Keyboard & Mouse</ion-select-option>
                  <ion-select-option value="gamepad">Controller</ion-select-option>
                  <ion-select-option value="touch">Touch</ion-select-option>
                </ion-select>
              </ion-item>

              <ion-row style="background: var(--ion-item-background);">
                <ion-col>
                  <ion-button expand="block" color="primary" (click)="searchPlayer()">
                    Search Player
                  </ion-button>
                </ion-col>
              </ion-row>
            </ion-list>
          </ion-accordion>
        </ion-accordion-group>

Other information:

Ionic info:

Ionic CLI                     : 6.16.2 (/usr/local/lib/node_modules/@ionic/cli)
   Ionic Framework               : @ionic/angular 6.0.0-beta.0
   @angular-devkit/build-angular : 12.0.5
   @angular-devkit/schematics    : 12.0.5
   @angular/cli                  : 12.0.5
   @ionic/angular-toolkit        : 4.0.0

Capacitor:

   Capacitor CLI      : 3.0.2
   @capacitor/android : not installed
   @capacitor/core    : 3.0.2
   @capacitor/ios     : not installed

Utility:

   cordova-res : not installed globally
   native-run  : 1.4.0

System:

   NodeJS : v14.15.5 (/usr/local/bin/node)
   npm    : 6.14.11
   OS     : macOS Big Sur

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
farisfaisalthenacommented, Jun 29, 2021

Can you try the following dev build and let me know if it resolves the issue?

Can confirm its fixed already

0reactions
ionitron-bot[bot]commented, Jul 29, 2021

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

Read more comments on GitHub >

github_iconTop Results From Across the Web

bug: first accordion in group does not have animation on close ...
Looks like this issue only impacts the first accordion in an accordion group. I will look into a fix.
Read more >
Angular-ui-bootstrap accordion and collapse animation not ...
On the angular-ui-bootstrap demo/docs page, the accordion and collapse directives are both animated when clicking on an item. However the ...
Read more >
Angular directives for Bootstrap - AngularUI
The accordion directive builds on top of the collapse directive to provide a list of items, with collapsible bodies that are collapsed or...
Read more >
Accordion · Bootstrap v5.0
This is the first item's accordion body. It is shown by default, until the collapse plugin adds the appropriate classes that we use...
Read more >
W3.CSS Accordions - W3Schools
Use any kind of button to open and close the content: ... However, you do not have to follow our approach - an...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found