---
title: "Discussion on \"How to create drag and drop accordion list in Angular\" | Hashnode"
description: "Discussion on \"How to create drag and drop accordion list in Angular\". In this article, I’d like to share with you how to create a list of accordion items, which also supports the drag and drop functionality.\nWe will build two lists, the first is the list of unassigned tasks, and the second is the list of assigned tasks..."
url: "https://hashnode.com/posts/how-to-create-drag-and-drop-accordion-list-in-angular/624ce87724471c433062c8d7"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to create drag and drop accordion list in Angular](https://hien.page/how-to-create-drag-and-drop-accordion-list-in-angular?utm_source=hashnode&utm_medium=feed)

In this article, I’d like to share with you how to create a list of accordion items, which also supports the drag and drop functionality. We will build two lists, the first is the list of unassigned tasks, and the second is the list of assigned tasks...

Apr 6, 2022 · 3 min read · hien.page  
Read the article

-   [#angular](https://hashnode.com/tag/angular)
-   [#angular-material](https://hashnode.com/tag/angular-material)
-   [#web-development](https://hashnode.com/tag/web-development)

## Written by

[Hien Pham](https://hashnode.com/@hienpham)

@hienpham · Ho Chi Minh city, Viet Nam

  
[View profile](https://hashnode.com/@hienpham)

Front-end web developer @Inspectorio

## Responses 2

Markdown supported · ⌘↵ to post

[William Moore](https://hashnode.com/@willm)

[Dec 22, 2022](https://hashnode.com/posts/how-to-create-drag-and-drop-accordion-list-in-angular/624ce87724471c433062c8d7/comment/63a45a873916c9c9a801d181)

I found I could resolve the problem described in the second paragraph of my previous comment by using a DraG Handle.

Actually I don't really know if it was the Drag Handle which solved the problem or something else I did in a lot of experimenting but I'm too lazy to go back and check that.

[William Moore](https://hashnode.com/@willm)

[Dec 17, 2022](https://hashnode.com/posts/how-to-create-drag-and-drop-accordion-list-in-angular/624ce87724471c433062c8d7/comment/639debf5052fc36d4a8f6748)

Hi Hien

Unfortunately the version on Stackblitz does not work because the version of bootstrap it uses requires JQuery. It can be made to work by changing the version numbers in index.html from 3.4.1 to 5.2.3 (this is the only version I tested).

The version in Stablitz uses Angular 10 and it works nicely (once the change in the previous paragraph is made). I am trying to do the same thing in Angular 14 and when I release the mouse at the end of the drag the dragged expansion panel changes it's state (from closed to open or open to closed). This is very annoying and I have not been able to find a way round it. Do you know of any way to return to the way it works with Angular 10?

Best regards

WIlliam
