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

Angular Material autocomplete attribute causes HTML_CodeSniffer to not load errors/warnings #296

Open
OurFinalBow opened this issue Feb 9, 2021 · 1 comment

Comments

@OurFinalBow
Copy link

When using the following code the code sniffer gets stuck trying to load results (infinite load spinner):

            <mat-form-field class="fieldCCNumber" appearance="outline">
                <mat-label>Card Number</mat-label>
                <input matInput autocomplete="cc-number" id="cc-number" required>
            </mat-form-field>

When I remove the autocomplete="cc-number" it works fine and returns results. However, the autocomplete is needed for the credit card autofill to work with the angular material.

@osimblahan
Copy link

I have a similar issue, I narrowed it down to the translation file keys not matching the ones used in the rule. This caused it to error.

1_3_5_H98.InvalidAutocomplete_Text in en.js
vs
1_3_5_H98.InvalidAutoComplete_Text in 1_3_5.js

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