2
0
mirror of https://github.com/frappe/books.git synced 2024-12-23 03:19:01 +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);
}
};