InfomediaLtd / angular2-materialize

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

Multiple Select - Checkboxes are moved downwards #349

Open SerdarNur opened 7 years ago

SerdarNur commented 7 years ago

Hi Guys,

iam working on an Angular2-cli Project and have implemented materialize successfully. But i have a problem with the Multiple Select. The Checkboxes are moved downwards and i dont know why. I already checked all dependencies.

grafik

Here the Code from the HTML:

<div class="row">
              <div class="col s12 input-field">
                <select materialize="material_select" [materializeSelectOptions]="selectOptions" multiple >
                  <option value="" disabled selected>Optionen auswählen:</option>
                  <option *ngFor="let option of selectOptions" [value]="option.value">{{option.name}}</option>
                </select>
                <label>Datenquellen</label>
              </div>
 </div>

Part of my Angular-CLI:


        "../node_modules/materialize-css/dist/css/materialize.css",
        "styles.css"
      ],
      "scripts": [
        "../node_modules/jquery/dist/jquery.js",
        "../node_modules/hammerjs/hammer.js"
      ],```

Hope you can help me.
rubyboy commented 7 years ago

Seems like a MaterializeCSS problem: https://github.com/Dogfalo/materialize/issues/5083 It has some workaround, until the bug is fixed.

SerdarNur commented 7 years ago

Yes that workaround works for me. Thanks!

rubyboy commented 7 years ago

Cool, thanks for checking. I'll leave the bug here, until https://github.com/Dogfalo/materialize/issues/5083 is resolved