Skip to content

Commit

Permalink
fix(select): Fix notch outline width when floating (#5319)
Browse files Browse the repository at this point in the history
Need to call notch first to get width of label before it floats. Same behavior as outlined textfield
  • Loading branch information
Elliott Marquez authored and dfreedm committed Dec 12, 2019
1 parent b723dfa commit 1c494e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/mdc-select/foundation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -251,8 +251,8 @@ export class MDCSelectFoundation extends MDCFoundation<MDCSelectAdapter> {
this.adapter_.addClass(cssClasses.FOCUSED);

if (this.adapter_.hasLabel()) {
this.adapter_.floatLabel(true);
this.notchOutline(true);
this.adapter_.floatLabel(true);
}

this.adapter_.activateBottomLine();
Expand Down

0 comments on commit 1c494e5

Please sign in to comment.