set maxlength on search when maximumInputLength is defined. closes #538
This commit is contained in:
parent
26751cb157
commit
4e1873fb9d
@ -724,6 +724,10 @@ the specific language governing permissions and limitations under the Apache Lic
|
||||
this.monitorSource();
|
||||
}
|
||||
|
||||
if (opts.maximumInputLength !== null) {
|
||||
this.search.attr("maxlength", opts.maximumInputLength);
|
||||
}
|
||||
|
||||
var disabled = opts.element.prop("disabled");
|
||||
if (disabled === undefined) disabled = false;
|
||||
this.enable(!disabled);
|
||||
|
Loading…
Reference in New Issue
Block a user