8000 docs: add info on version of sortablejs and material fix · SortableJS/ngx-sortablejs@368ba2b · GitHub
[go: up one dir, main page]

Skip to content

Commit 368ba2b

Browse files
authored
docs: add info on version of sortablejs and material fix
1 parent b3c3f49 commit 368ba2b

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

README.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Trees are also supported: [tree with fake root element (\*ngFor once, root can a
1313
## Installation
1414

1515
```sh
16-
npm i ngx-sortablejs sortablejs
16+
npm i ngx-sortablejs sortablejs@~1.9.0
1717
```
1818

1919
You are configured now. If you use Webpack or Angular CLI go to the usage. If you have SystemJS, that's sad, but you can go to the end of the document to find configuration steps there.
@@ -217,6 +217,20 @@ This value will be used as a default one, but it can be overwritten by a local `
217217

218218
## Angular Material specifics
219219

220+
### Expansion panel
221+
222+
There is a bug with expansion panel which appears because angular material does not really hide the content of panel, but uses `visibility: hidden`. What we need to do is to actually totally hide it from the DOM instead.
223+
224+
Just add this to your **global** styles
225+
226+
```css
227+
mat-expansion-panel.sortable-drag .mat-expansion-panel-content {
228+
display: none;
229+
}
230+
```
231+
232+
and the issue should be resolved.
233+
220234
### Ripple effect
221235

222236
The elements with ripple effect like `mat-list-item` are affected. The dragging is broken because there is a [div created right under the cursor](https://github.com/angular/material2/blob/master/src/lib/core/ripple/ripple-renderer.ts#L142) and the webkit has no idea what to do with it.

0 commit comments

Comments
 (0)
0