material-components / material-components-web-codelabs

Codelabs for Material Components for Web (MDC Web)
MIT License
128 stars 101 forks source link

Problem with Codelab 111 #140

Open grantkemp opened 4 years ago

grantkemp commented 4 years ago

Currently when you run the starter project which you download at the beginning of the codelab you get a result with broken layout.

Assume that it's a download that is out of sync. It would be good to have the downloads for the code lab in one location which can be kept up to date

https://codelabs.developers.google.com/codelabs/mdc-111-web/#3

Error Message

Uncaught Error: MDCSelect: Missing required element: The following selector must be present: '.mdc-select__selected-text'

image

Henke1983 commented 3 years ago

I run into the same issue.

The problem is : <select class="mdc-select__native-control" id="crane-state-input" required> That class is not found. I changed it to <select class="mdc-select__selected-text" id="crane-state-input" required>

I turned out to be better - but I'm not really sure if this is correct to do it.