We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent daee5d1 commit 4dfa5dbCopy full SHA for 4dfa5db
1 file changed
src/js/scrollable.js
@@ -1,8 +1,9 @@
1
-import 'simplebar/src/simplebar'
+import 'simplebar/src/simplebar.js'
2
3
export default function () {
4
5
$.fn.blScrollable = function () {
6
+
7
if (!this.length) return
8
if (this.length > 1) {
9
this.each(function () {
@@ -18,6 +19,11 @@ export default function () {
18
19
el.addClass('horizontal')
20
}
21
22
+ if ($.fn.simplebar === undefined) {
23
+ el.css('overflow-y', 'scroll')
24
+ return
25
+ }
26
27
el.simplebar()
28
el.simplebar().on('scroll', function () {
29
var scrollable = $(this)
0 commit comments