From 1b3e4ed35cb3664f9c36ffbc97365908fb59d24a Mon Sep 17 00:00:00 2001 From: Joey Kaan Date: Mon, 26 Nov 2018 20:30:59 +0100 Subject: [PATCH] Remove defer from material.min.js Adding defer would allow this script to execute after the `getmdl-select.js` script. For me the problem was that I was setting the data-selected=true, but in the `setSelectedItem` function it was requesting dropdown.MaterialTextField, which was not there yet because the `material.min.js` did not execute yet. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 0b7710a..6824f25 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,7 @@ To use any MDL component, you must include the minified CSS and JavaScript files - +