support readonly attribute by disabling select2. fixes #293
This commit is contained in:
parent
b422d4efef
commit
15b654a170
@ -559,7 +559,7 @@
|
|||||||
this.monitorSource();
|
this.monitorSource();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (opts.element.is(":disabled")) this.disable();
|
if (opts.element.is(":disabled") || opts.element.is("[readonly='readonly']")) this.disable();
|
||||||
},
|
},
|
||||||
|
|
||||||
// abstract
|
// abstract
|
||||||
|
Loading…
Reference in New Issue
Block a user