Skip to content

Commit 3c28c35

Browse files
committed
Merge pull request select2#2095 from mkurz/readonly_chaining
Allow chaining for .select2('readonly', ...)
2 parents beabb63 + bd3bd55 commit 3c28c35

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

select2.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1151,12 +1151,11 @@ the specific language governing permissions and limitations under the Apache Lic
11511151
// abstract
11521152
readonly: function(enabled) {
11531153
if (enabled === undefined) enabled = false;
1154-
if (this._readonly === enabled) return false;
1154+
if (this._readonly === enabled) return;
11551155
this._readonly = enabled;
11561156

11571157
this.opts.element.prop("readonly", enabled);
11581158
this.enableInterface();
1159-
return true;
11601159
},
11611160

11621161
// abstract

0 commit comments

Comments
 (0)