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

data-autoinit is not working #28

Open
o-alquimista opened this issue Jul 27, 2021 · 0 comments
Open

data-autoinit is not working #28

o-alquimista opened this issue Jul 27, 2021 · 0 comments

Comments

@o-alquimista
Copy link

o-alquimista commented Jul 27, 2021

<div>
  <label for="cpf">CPF</label>
  <input id="cpf" type="tel" class="masked" pattern="[0-9]{3}.[0-9]{3}.[0-9]{3}-[0-9]{2}" placeholder="999.999.999-99" maxlength="14" title="Número de CPF, incluindo pontos e hífen. Exemplo: 000.000.000-00">
</div>
let inputMask = new InputMask();

Manual initialization is working, but auto initialization via script[data-autoinit=true] is not.

<script defer src="/path/to/file.js" data-autoinit="true"></script>

I'm using commit afc9fbb.

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

1 participant