Skip to content
This repository was archived by the owner on Jan 13, 2025. It is now read-only.

Commit 1c494e5

Browse files
Elliott Marquezdfreedm
Elliott Marquez
authored andcommitted
fix(select): Fix notch outline width when floating (#5319)
Need to call notch first to get width of label before it floats. Same behavior as outlined textfield
1 parent b723dfa commit 1c494e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/mdc-select/foundation.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -251,8 +251,8 @@ export class MDCSelectFoundation extends MDCFoundation<MDCSelectAdapter> {
251251
this.adapter_.addClass(cssClasses.FOCUSED);
252252

253253
if (this.adapter_.hasLabel()) {
254-
this.adapter_.floatLabel(true);
255254
this.notchOutline(true);
255+
this.adapter_.floatLabel(true);
256256
}
257257

258258
this.adapter_.activateBottomLine();

0 commit comments

Comments
 (0)