mkhairi / materialize-sass

Materializecss rubygem for Rails Asset Pipeline / Sprockets
http://materialize.labs.my/
MIT License
805 stars 243 forks source link

collection_select does not render without using browser-default class #52

Closed Shawg closed 9 years ago

mkhairi commented 9 years ago

hi @Shawg, can you provide more details on this matter

BillyRuffian commented 9 years ago

Selects in general seem a bit broken. With the following bit of haml:

%form
  .row
    .input-field.col.s12
      %select.browser-default
        %option Option 1
        %option Option 2
        %option Option 3
      %label Browser default

  .row
    .input-field.col.s12
      %select
        %option Option 1
        %option Option 2
        %option Option 3
      %label Materialize style

The first select has a label which crashes into the select element, the second select isn't rendered at all.

materialize-sass

BillyRuffian commented 9 years ago

Ahhh, I found a partial solution in http://stackoverflow.com/questions/28258106/materialize-css-select-doesnt-seem-to-render

Selects aren't great in Materialize.