ExpansionPanel does not want to collapse and remains expanded

2 Answers 490 Views
ExpansionPanel
Kristof
Top achievements
Rank 1
Iron
Iron
Kristof asked on 19 May 2021, 02:11 PM

Hi,

I tried the ExpansionPanel by implementing the example below in my app-root component:

Interaction - ExpansionPanel - Kendo UI for Angular (telerik.com)

All panels are expanded by default, if I click on the collapse button, I see the animation to go from expanded to collapse state, but the panel resets itself immediatly to its expanded state. (see video as attachment)

I am importing this style in my styles.scss:

@import "~@progress/kendo-theme-bootstrap/scss/expansion-panel/index";

When I add the all.scss in my styles it seems to work correctly...

@import "~@progress/kendo-theme-bootstrap/scss/all.scss";

 

Any idea why this does not work?

thx!

----

My Styles.scss

@import "~@progress/kendo-theme-bootstrap/scss/appbar/index";
@import "~@progress/kendo-theme-bootstrap/scss/badge/index";
@import "~@progress/kendo-theme-bootstrap/scss/icons/index";
@import "~@progress/kendo-theme-bootstrap/scss/menu/index";
@import "~@progress/kendo-theme-bootstrap/scss/grid/index";
@import "~@progress/kendo-theme-bootstrap/scss/avatar/index";
@import "~@progress/kendo-theme-bootstrap/scss/drawer/index";
@import "~@progress/kendo-theme-bootstrap/scss/datetime/index";
@import "~@progress/kendo-theme-bootstrap/scss/notification/index";
@import "~@progress/kendo-theme-bootstrap/scss/loader/index";
@import "~@progress/kendo-theme-bootstrap/scss/expansion-panel/index";
@import "~@progress/kendo-theme-bootstrap/scss/bootstrap_dist.scss";

 

My Kendo-packages.json

  "@progress/kendo-angular-buttons""^6.1.2",
    "@progress/kendo-angular-common""^2.0.1",
    "@progress/kendo-angular-dateinputs""^5.2.0",
    "@progress/kendo-angular-dropdowns""^5.3.0",
    "@progress/kendo-angular-excel-export""^4.0.1",
    "@progress/kendo-angular-grid""^5.1.2",
    "@progress/kendo-angular-icons""^0.4.3",
    "@progress/kendo-angular-indicators""^1.1.0",
    "@progress/kendo-angular-inputs""^7.2.1",
    "@progress/kendo-angular-intl""^3.1.1",
    "@progress/kendo-angular-l10n""^3.0.1",
    "@progress/kendo-angular-label""^3.0.3",
    "@progress/kendo-angular-layout""^6.1.5",
    "@progress/kendo-angular-menu""^3.0.2",
    "@progress/kendo-angular-messages""^1.29.1",
    "@progress/kendo-angular-navigation""^1.1.0",
    "@progress/kendo-angular-notification""^3.0.1",
    "@progress/kendo-angular-pdf-export""^3.0.1",
    "@progress/kendo-angular-popup""^4.0.1",
    "@progress/kendo-angular-progressbar""^2.0.1",
    "@progress/kendo-angular-treeview""^5.3.1",
    "@progress/kendo-data-query""^1.5.5",
    "@progress/kendo-drawing""^1.10.0",
    "@progress/kendo-licensing""^1.1.4",
    "@progress/kendo-svg-icons""^0.1.2",
    "@progress/kendo-theme-bootstrap""^4.35.1",

2 Answers, 1 is accepted

Sort by
0
Georgi
Telerik team
answered on 24 May 2021, 11:39 AM

Hi Kristof,

The panel content fails to get hidden in your situation because what hides it is the CSS class "k-display-none", which is not included in the expansion-panel style list, but is included in the "all" package.

However, if you include the following import, I think you won't need to include the entire "all" package:

@import "@progress/kendo-theme-bootstrap/scss/utils/_index.scss";

 

I am not sure how well this is documented, so I will definitely check that with the rest of the team and make the necessary additions if needed.

Looking forward to hearing from you.

Regards,
Georgi
Progress Telerik

Тhe web is about to get a bit better! 

The Progress Hack-For-Good Challenge has started. Learn how to enter and make the web a worthier place: https://progress-worthyweb.devpost.com.

0
Georgi
Telerik team
answered on 25 May 2021, 03:09 PM

Hi Kristof,

I followed up on this issue with my colleagues and it turns out that this is actually a mistake on our side. You haven't made a mistake in your setup. It's us who have forgotten to import these styles in the ExpansionPanel theme.

A fix is on its way.

I hope that clears things up. Again, we remain at your disposal for further assistance if needed.

Regards,
Georgi
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Kristof
Top achievements
Rank 1
Iron
Iron
commented on 25 May 2021, 05:32 PM

Hi Georgi,

Great support!
Please keep me updated when the fix can be used.

Regards,
Kristof
Georgi
Telerik team
commented on 28 May 2021, 01:59 PM

Hi Kristof,

I forgot to mention - we have created a publicly available issue in our themes repo, which you can find and subscribe to at the link below:

https://github.com/telerik/kendo-themes/issues/2502

That will let you monitor the progress of the fix.

If there is anything else we can help you with, feel free to write us again.

Regards,
Georgi
Progress Telerik
Tags
ExpansionPanel
Asked by
Kristof
Top achievements
Rank 1
Iron
Iron
Answers by
Georgi
Telerik team
Share this question
or