@@ -60,7 +60,6 @@ export class Select implements ComponentInterface {
6060 private inheritedAttributes : Attributes = { } ;
6161 private nativeWrapperEl : HTMLElement | undefined ;
6262 private notchSpacerEl : HTMLElement | undefined ;
63-
6463
6564 private notchController ?: NotchController ;
6665
@@ -109,7 +108,7 @@ export class Select implements ComponentInterface {
109108 /**
110109 * Text that is placed under the select and displayed when an error is detected.
111110 */
112- @Prop ( ) errorText ?: string ;
111+ @Prop ( ) errorText ?: string ;
113112
114113 /**
115114 * The interface the select should use: `action-sheet`, `popover`, `alert`, or `modal`.
@@ -742,21 +741,6 @@ export class Select implements ComponentInterface {
742741 </ div > ,
743742 ] ;
744743 }
745-
746- private getHintTextID ( ) : string | undefined {
747- const { el, helperText, errorText, helperTextId, errorTextId } = this ;
748-
749- if ( el . classList . contains ( 'ion-touched' ) && el . classList . contains ( 'ion-invalid' ) && errorText ) {
750- return errorTextId ;
751- }
752-
753- if ( helperText ) {
754- return helperTextId ;
755- }
756-
757- return undefined ;
758- }
759-
760744 private get childOpts ( ) {
761745 return Array . from ( this . el . querySelectorAll ( 'ion-select-option' ) ) ;
762746 }
@@ -856,10 +840,10 @@ export class Select implements ComponentInterface {
856840 } ;
857841
858842 /**
859- * Responsible for rendering helper text and
860- * error text. This element should only
861- * be rendered if hint text is set.
862- */
843+ * Responsible for rendering helper text and
844+ * error text. This element should only
845+ * be rendered if hint text is set.
846+ */
863847 private renderBottomContent ( ) {
864848 const { helperText, errorText } = this ;
865849
@@ -868,18 +852,11 @@ export class Select implements ComponentInterface {
868852 * be treated as not having helper/error text.
869853 */
870854 const hasHintText = ! ! helperText || ! ! errorText ;
871- console . log ( `HelperText: ${ helperText } ` ) ;
872- console . log ( `errorText: ${ errorText } ` ) ;
873855 if ( ! hasHintText ) {
874- console . log ( "No text" ) ;
875856 return ;
876857 }
877858
878- return (
879- < div class = "input-bottom" >
880- { this . renderHintText ( ) }
881- </ div >
882- ) ;
859+ return < div class = "input-bottom" > { this . renderHintText ( ) } </ div > ;
883860 }
884861
885862 private renderLabel ( ) {
0 commit comments