InfomediaLtd / angular2-materialize

Angular 2 support for Materialize CSS framework.
https://infomedialtd.github.io/angular2-materialize/
MIT License
407 stars 140 forks source link

Updated for materialize-css ^1.0.0 #441

Open silviokennecke opened 6 years ago

jelkinsiv commented 5 years ago

Any chance this is going to be merged? There is a bug in the current version of materialize-css v0.100.X that makes selects (and apparently datepickers) not work. That was fixed in v1.0.0.

alex-bluetrain commented 5 years ago

Any chance this is going to be merged? There is a bug in the current version of materialize-css v0.100.X that makes selects (and apparently datepickers) not work. That was fixed in v1.0.0.

having that same problem over here, looks like this repo is abandoned, any other solutions for this?

tuffant21 commented 5 years ago

@jelkinsiv @alex-bluetrain I found a work around for the issue you're having cause I had it too.

Here is my custom fix. This downloads a version of Materialize that isn't on NPM yet, and moves it to the node_packages folder. It won't work for you out of the box, but you should be able to read the code and understand what is happening. Then modify it or run it manually to fix the issue.

`/**

How it works: git clone --quiet https://github.com/Dogfalo/materialize.git Clones the materialize git git checkout --quiet e3eb698a07fec1d3111c1786bf502f0225bdfbda Checks out the commit that fixes the chrome bug npm install --silent -g grunt-cli Downloads the build process that builds materialize npm install --silent Installs the necessary packages to build grunt release Builds the materialize packages.

Then the gulp functions move the built code to the node_modules.

*** NOTE: This node application only works with Node version 8. It does not work with any Node version greater than 8. For some reason, doing a git clone using execSync in Node v10 and greater, causes an exception to be thrown.