adopted-ember-addons / adopted-ember-addons/ember-inputmask

one-way-number-mask slow

Ouverte
#81 2 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
enhancement Underlying Library
Langage dominant
JavaScript
Étoiles
67
Forks
43
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

```
{{one-way-number-mask
value=val
update=(action (mut val))
class="someclass"
options=(hash groupSeparator=" ")
}}
```

This code generates ton of [violation] errors in JS console:

```
[Violation] 'setTimeout' handler took 144ms
[Violation] 'input' handler took 693ms
```

And works slow. What could be the problem here?

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

Start by reproducing the provided one-way-number-mask example with the shown value, update action, class, and groupSeparator option, then inspect the browser console timings for the input and setTimeout handlers. Compare the behavior with a minimal version of the example to isolate the source of the delay. Done means the performance cause is identified and a verified fix or actionable diagnosis is documented.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
javascript
Domaine
frontend
Type d'issue
Bug
Difficulté
4/5
Temps estimé
3-5 jours
Activité
À l'abandon
Clarté
À clarifier
Accessibilité débutants
25/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.