diff --git a/build/js/ox.ui.js b/build/js/ox.ui.js index f22c98c0..d18af483 100644 --- a/build/js/ox.ui.js +++ b/build/js/ox.ui.js @@ -1500,15 +1500,17 @@ requires Ox.Input = function(options, self) { var self = self || {}, - that = new Ox.Element("input", self) + that = new Ox.Element(options.type=='textarea'?'textarea':'input', self) .defaults({ placeholder: "", size: "medium", type: "text" }) .options(options || {}); + if(options.type != 'textarea') { + that.attr({type: self.options.type}) + } that.attr({ - type: self.options.type, placeholder: self.options.placeholder }) .addClass("OxInput Ox" +