File tree Expand file tree Collapse file tree 1 file changed +5
-10
lines changed
core/src/components/select Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -785,17 +785,12 @@ export class Select implements ComponentInterface {
785
785
*/
786
786
this . notchSpacerEl === undefined ||
787
787
/**
788
- * If no label is being used, then we
789
- * do not need to estimate the notch width.
788
+ * If either the label property is being
789
+ * used or the label slot is not defined,
790
+ * then we do not need to estimate the notch width.
790
791
*/
791
- ! this . hasLabel ||
792
- /**
793
- * If the label property is being used
794
- * then we can render the label text inside
795
- * of the notch and let the browser
796
- * determine the notch size for us.
797
- */
798
- this . label !== undefined
792
+ this . label !== undefined ||
793
+ this . labelSlot === null
799
794
) {
800
795
return false ;
801
796
}
You can’t perform that action at this time.
0 commit comments