2
0
mirror of https://github.com/frappe/books.git synced 2024-11-09 23:30:56 +00:00

input type overridable

This commit is contained in:
Faris Ansari 2018-04-02 22:37:42 +05:30
parent a74ec62abe
commit fa612fdeff

View File

@ -3,7 +3,11 @@ const BaseControl = require('./base');
class DataControl extends BaseControl {
make() {
super.make();
this.input.setAttribute('type', 'text');
if (!this.inputType) {
this.inputType = 'text';
}
this.input.setAttribute('type', this.inputType);
}
};