Skip to content

Commit 9476e34

Browse files
author
Wong Ho Chi Mark
committed
fix incorrect display
1 parent d0f2512 commit 9476e34

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/slick.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,6 @@ angular
140140
destroy();
141141
}
142142
} else {
143-
angular.element(element).css('display', 'block');
144-
145143
if (!options.enabled) {
146144
return;
147145
}
@@ -154,7 +152,9 @@ angular
154152
return slick.slideHandler(currentIndex);
155153
}
156154
});
155+
157156
$timeout(function () {
157+
angular.element(element).css('display', 'block');
158158
slickness.slick(options);
159159
});
160160
}

0 commit comments

Comments
 (0)