Skip to content

Commit bc7dc29

Browse files
committed
Changed disableOnMobile default option to true.
Since `nativeOnMobile` option has been implemented, Selectric will have a better behavior on mobile and auto-disabling is not necessary anymore.
1 parent 471b28d commit bc7dc29

File tree

5 files changed

+6
-8
lines changed

5 files changed

+6
-8
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ $('select').selectric({
136136
* Type: Boolean
137137
* Description: Initialize plugin on mobile browsers
138138
*/
139-
disableOnMobile: true,
139+
disableOnMobile: false,
140140

141141
/*
142142
* Type: Boolean

public/index.html

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ <h2>Options</h2>
217217
* Type: Boolean
218218
* Description: Initialize plugin on mobile browsers
219219
*/
220-
disableOnMobile: true,
220+
disableOnMobile: false,
221221

222222
/*
223223
* Type: Boolean
@@ -704,9 +704,7 @@ <h4><a href="./demo.html">view more advanced demos and customization →</a></h4
704704
}
705705
});
706706

707-
$('select').selectric({
708-
disableOnMobile: false
709-
});
707+
$('select').selectric();
710708
});
711709

712710
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){

public/jquery.selectric.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1062,7 +1062,7 @@
10621062
maxHeight : 300,
10631063
keySearchTimeout : 500,
10641064
arrowButtonMarkup : '<b class="button">&#x25be;</b>',
1065-
disableOnMobile : true,
1065+
disableOnMobile : false,
10661066
nativeOnMobile : true,
10671067
openOnFocus : true,
10681068
openOnHover : false,

public/jquery.selectric.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/jquery.selectric.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1045,7 +1045,7 @@
10451045
maxHeight : 300,
10461046
keySearchTimeout : 500,
10471047
arrowButtonMarkup : '<b class="button">&#x25be;</b>',
1048-
disableOnMobile : true,
1048+
disableOnMobile : false,
10491049
nativeOnMobile : true,
10501050
openOnFocus : true,
10511051
openOnHover : false,

0 commit comments

Comments
 (0)