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

Material Checkbox & Radio type creates textbox #616

Closed
subratastack opened this issue Dec 27, 2017 · 4 comments · Fixed by #652
Closed

Material Checkbox & Radio type creates textbox #616

subratastack opened this issue Dec 27, 2017 · 4 comments · Fixed by #652

Comments

@subratastack
Copy link

subratastack commented Dec 27, 2017

capture_190

{
            key: 'awesome',
            type: 'checkbox',
            templateOptions: { label: '' },
            expressionProperties: {
              'templateOptions.disabled': 'formState.awesomeIsForced',
              'templateOptions.label': (model, formState) => {
                if (formState.awesomeIsForced) {
                  return 'Too bad, formly is really awesome...';
                } else {
                  return 'Is formly totally awesome? (uncheck this and see what happens)';
                }
              },
            },
          }
@aitboudad
Copy link
Member

I'm waiting for material issue angular/components#7891 to be solved, I guest the underline should be hidden right ?

@subratastack
Copy link
Author

@aitboudad Yes, the underline should be hidden. Thank you

@aitboudad
Copy link
Member

I'll look into it later, in the meantime you can hide it using css

@abdelhadibentabet
Copy link

abdelhadibentabet commented May 12, 2020

Fix not working when appearance: "outline"
Same thing must be done for "mat-form-field-outline" class

EDIT : using appearance :"underline" in templateOptions as a temporary fix

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

Successfully merging a pull request may close this issue.

3 participants