lynnsea
lynnsea

Reputation: 137

materialize not work well with select2

I found the document in materialize UI framework with select2 .

when I did not add $("select").selet2(); everything is ok . the page like this: normal page

when I add .select2() function, the page not work well :

the line under select disappeared . enter image description here

I push my code into github , and here is the repository:

https://github.com/SeasonXin/material-select2-issue.git

hope somebody's support, very thanks ;

Upvotes: 1

Views: 3710

Answers (3)

Carlos Parra
Carlos Parra

Reputation: 1

Spelling Error.

Use

select2()
    ^

instead of

selet2()

Upvotes: 0

powerangelito
powerangelito

Reputation: 9

I had the same problem, but I found this https://github.com/nikitasnv/materialize-select2

In the case of labels, enter these styles

style = "position: absolute; top: -14px; font-size: 0.8rem"

Upvotes: 0

AUser
AUser

Reputation: 105

Adding the class 'browser-default' to the select element will fix that

Upvotes: 1

Related Questions