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

View file

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