material icon indicating copy to clipboard operation
material copied to clipboard

md-select does not appear to work inside md-input-container

Open billfranklin opened this issue 11 years ago • 3 comments

Would seem to make sense to make setting up form inputs consistently (i.e. not excluding md-select from the md-input-container)

billfranklin avatar Mar 22 '15 00:03 billfranklin

Same issue here. driving me nuts. Might have to do a css hack and post

sclearion avatar Mar 23 '15 20:03 sclearion

Temporary hack. I had change the md-input-container surrounding the md-select from:

<md-input-container flex>

to

<div flex>

and the add this style to my css:

md-select {
    display: inline-block;
    margin-top: 2px;
    width: 100%;
}

Final block looks like this

<div flex>
    <label>Appointment With</label><br/>
    <md-select ng-model="favoriteTopping" placeholder="Favorite Topping">
        <md-optgroup label="Meats">
            <md-option ng-value="topping.name" ng-repeat="topping in toppings| filter: {category: 'meat' }">{{topping.name}}</md-option>
        </md-optgroup>
        <md-optgroup label="Veggies">
            <md-option ng-value="topping.name" ng-repeat="topping in toppings| filter: {category: 'veg' }">{{topping.name}}</md-option>
        </md-optgroup>
    </md-select>
</div>

sclearion avatar Mar 23 '15 21:03 sclearion

Thanks for the temporary fix!

patrickmichalina avatar Mar 28 '15 23:03 patrickmichalina