diff --git a/index.html b/index.html index ba831908..e54d71aa 100644 --- a/index.html +++ b/index.html @@ -506,7 +506,7 @@
- +

Textarea

diff --git a/scripts/material.js b/scripts/material.js index e7ca001b..e7455fe7 100644 --- a/scripts/material.js +++ b/scripts/material.js @@ -78,9 +78,9 @@ console.error("Expected form-group for input", $this); } - if (!$this.attr("data-hint") && !$this.hasClass("floating-label")) { - return; - } + //if (!$this.attr("data-hint") && !$this.hasClass("floating-label")) { + // return; + //} $this.after(""); @@ -91,9 +91,10 @@ $this.after("
" + placeholder + "
"); } - // Add hint label if required + + // Add hint label if using the shorthand data-hint attribute on the input if ($this.attr("data-hint")) { - $this.after("
" + $this.attr("data-hint") + "
"); + $this.after("

" + $this.attr("data-hint") + "

"); } // Set as empty if is empty (damn I must improve this...)