fix(#I15O20): 修复 longbow-select 丢失 readonly 属性

#Issue
close https://gitee.com/LongbowEnterprise/dashboard/issues?id=I15O20
This commit is contained in:
Argo Window10 2019-11-26 11:19:15 +08:00
parent e1c7c3fff3
commit 05d5557a90
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@
// 新控件 <div class="form-select">
this.$ctl = $(lgbSelect.Template).insertBefore(this.$element);
if ($input.attr('data-toggle') === 'lgbSelect') {
this.$input = $input.addClass("form-select-input").attr("aria-haspopup", "true").attr("aria-expanded", "false").attr("data-toggle", "dropdown");
this.$input = $input.addClass("form-select-input").attr("aria-haspopup", "true").attr("aria-expanded", "false").attr("data-toggle", "dropdown").attr("readonly", true);
}
else {
this.$input = $('<input type="text" readonly="readonly" class="form-control form-select-input" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"/>');