Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MDTextField][MDTextView][Android] Helper seems not to work #435

Open
cloudhx opened this issue Feb 18, 2023 · 2 comments
Open

[MDTextField][MDTextView][Android] Helper seems not to work #435

cloudhx opened this issue Feb 18, 2023 · 2 comments

Comments

@cloudhx
Copy link

cloudhx commented Feb 18, 2023

I simply set property helper on both MDTextField and MDTextView, but the helper text doesn't show. Please see below code snippets and screenshots. Thank you for your support!

MDTextField

<FlexboxLayout>
          <MDTextField class="input" #email formControlName="email" helper="test" [hint]="'EMAIL' | translate" autocorrect="false"
            autocapitalizationType="none" returnKeyType="next" (returnPress)="password.focus()"
            (blur)="trimFormControlValue('email')" variant="outline" placeholderColor="#9196A1">
          </MDTextField>
        </FlexboxLayout>

The two small dots under the text field seem from the two t in word test 🤔
Screenshot_20230218-151129_navigator

MDTextView

<FlexboxLayout>
            <MDTextView class="incident-comment" variant="outline" placeholderColor="#9196A1" floating="true"
              [hint]="('Comment...' | translate) + (incidentType.id === 'OTHER' ? '*' : '')"
              helper="test" returnKeyType="next"
              (textChange)="onCommentChange($event)">
            </MDTextView>
          </FlexboxLayout>

Screenshot_20230218-152525_navigator

@farfromrefug
Copy link
Member

@cloudhx are you enforcing TextField, TextView height?
I tested here and if i dont enforce height i see the helper text.
With TextView at least, if i set the height, then i dont see it

@cloudhx
Copy link
Author

cloudhx commented Feb 21, 2023

@farfromrefug I enforced height for TextView but not TextField.
I think I also tried not enforcing height for TextView, it didn't show helper either. I will double check it and update the code and screenshot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants