aurelia / aurelia/binding

Password value binding triggers updateTarget?

Open
#458 11 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
110
Forks
98
PR merge metrics
No merged PRs in 30d

Description

I am observing a strange beahvior that is causing me trouble.

I have a simple value binding + behavior on a password field:
``.

When I type text in the input, I see `updateSource` is called, as expect.
When I mash keys -- or simply press two keys at the same time -- it seems `updateTarget` is called as well. But why? This is causing unwanted side-effects in my binding behavior.

This is easy to reproduce in IE11 with a password box: just hit two keys at the same time.
It seems it sometimes happens with a normal textbox as well, but it is a lot harder to reproduce.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the value binding and behavior from the issue in IE11, first with a password input and then with a normal textbox. Trace the updateSource and updateTarget calls while pressing keys simultaneously; done means explaining the extra updateTarget call and determining how the binding behavior should avoid the unwanted side effects.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.