fix(reorder): enabled by default works

This commit is contained in:
Manu Mtz.-Almeida
2018-01-17 13:38:24 +01:00
parent fe10dcb686
commit 3fce77ea6a
2 changed files with 4 additions and 2 deletions

View File

@ -68,6 +68,9 @@ export class ReorderGroup {
componentDidLoad() {
this.containerEl = this.el.querySelector('ion-gesture') as HTMLElement;
this.scrollEl = this.el.closest('ion-scroll') as HTMLElement;
if (this.enabled) {
this.enabledChanged(true);
}
}
componentDidUnload() {

View File

@ -9,8 +9,7 @@
</head>
<body>
<ion-reorder-group id="reorder">
<ion-reorder-group enabled>
<div>
Item 1 (default ion-reorder)
<ion-reorder></ion-reorder>