Skip to content

Commit f5b09e5

Browse files
committed
Fix compatibility layer when bootstrap-select-rails is not installed.
1 parent 1745dd4 commit f5b09e5

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
### bug fixes
77
* Do not change selects to the Bootstrap select class unless they are explicitly select fields.
88
Other types of controls also give select fields -- typeaheads and the like.
9+
* Fix compatibility layer for Bootstrap selects when the `bootstrap-select-rails` is not installed.
910

1011
## 1.2.0
1112

app/assets/javascripts/simple_form-bootstrap.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
//= require simple_form-bootstrap/date_time_input
2+
//= require simple_form-bootstrap/select_input
23
//= require simple_form-bootstrap/token_input
34

45
(function($) {

app/assets/javascripts/simple_form-bootstrap/select_input.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
return;
77
}
88

9-
$.fn.selectpicker = function(arg) {
10-
return methods.initialise.call(this, arg);
9+
$.fn.selectpicker = function() {
10+
return this;
1111
};
1212
}(jQuery));

0 commit comments

Comments
 (0)