Input field: fix readonly mode

This commit is contained in:
Julia Radzhabova 2019-03-22 15:13:10 +03:00
parent 858cd7c53e
commit 98415cc6a2
2 changed files with 7 additions and 6 deletions

View file

@ -73,7 +73,8 @@ define([
maskExp : '',
validateOnChange: false,
validateOnBlur: true,
disabled: false
disabled: false,
editable: true
},
template: _.template([
@ -106,7 +107,7 @@ define([
this.allowBlank = me.options.allowBlank;
this.placeHolder = me.options.placeHolder;
this.template = me.options.template || me.template;
this.editable = me.options.editable || true;
this.editable = me.options.editable;
this.disabled = me.options.disabled;
this.spellcheck = me.options.spellcheck;
this.blankError = me.options.blankError || 'This field is required';

View file

@ -11,10 +11,10 @@
}
}
.form-control[readonly] {
cursor: pointer;
background-color: @input-bg;
}
//.form-control[readonly] {
// cursor: pointer;
// background-color: @input-bg;
//}
.form-control[disabled] {
cursor: default;