Skip to content

added support for Materialize framework and icons#586

Open
lpgera wants to merge 2 commits into
jdorn:masterfrom
lpgera:master
Open

added support for Materialize framework and icons#586
lpgera wants to merge 2 commits into
jdorn:masterfrom
lpgera:master

Conversation

@lpgera

@lpgera lpgera commented Apr 17, 2016

Copy link
Copy Markdown

@typekpb

typekpb commented Aug 3, 2016

Copy link
Copy Markdown

sounds like a solution for: #632

},
afterInputReady: function(input) {
if(input.controls) return;
input.controls = this.closest(input,'.form-control');

@diegonc diegonc Sep 23, 2016

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I beleive here 'form-control' should be 'input-field'.

Also, I added the code below to prevent the label text from overlaping with the input value. But I still need to find a way not to use jQuery and double check that checkbox logic and other input types.

var label = $(input.controls).find("label");
if (input.type === "checkbox" && input.checked) label.addClass("active");
else if (input.value) label.addClass("active");

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants