From fa612fdefff67bdeda629bcfa56c4d47fa7a5792 Mon Sep 17 00:00:00 2001 From: Faris Ansari Date: Mon, 2 Apr 2018 22:37:42 +0530 Subject: [PATCH] input type overridable --- client/view/controls/data.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/client/view/controls/data.js b/client/view/controls/data.js index 2975f579..e7f70dc3 100644 --- a/client/view/controls/data.js +++ b/client/view/controls/data.js @@ -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); } };