lib/assets/javascripts/uniform/floating-label.js in uniform-ui-2.3.8 vs lib/assets/javascripts/uniform/floating-label.js in uniform-ui-2.4.0

- old
+ new

@@ -12,11 +12,11 @@ this.listenTo(this.input, 'blur', this.deactivate); this.listenTo(this.input, 'revealed', this.render); } render () { - if(!Helpers.is_visible(this.input)) return; + // if(!Helpers.is_visible(this.input)) return; if(Helpers.hasClass(this.el, 'enabled')) return; var padding = parseInt(Helpers.css(this.input, 'paddingBottom')); this.startingHeight = this.input.offsetHeight; Helpers.addClass(this.el, 'enabled'); @@ -29,10 +29,10 @@ this.label.style.top = 0; this.label.style.left = this.label.offsetLeft; this.label.style.paddingLeft = Helpers.css(this.input, 'paddingLeft'); this.label.style.height = this.startingHeight; this.label.style.lineHeight = this.startingHeight + "px"; - + if (Helpers.is_focus(this.input)) this.activate(); if (typeof this.input.value !== "undefined" && this.input.value != "") this.activate(); } activate (e) { \ No newline at end of file