Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Bug 796432 - Avoiding remove a phone when clicking RETURN key #5942

Merged
merged 1 commit into from
Nov 7, 2012
Merged

Bug 796432 - Avoiding remove a phone when clicking RETURN key #5942

merged 1 commit into from
Nov 7, 2012

Conversation

albertopq
Copy link
Contributor

The final fix would be adding a NEXT key in the keyboard, but this patch will at least fix the weird behavior of adding/removing a phone when clicking return

@@ -586,7 +586,7 @@ contacts.Form = (function() {
delIcon.setAttribute('role', 'button');
delIcon.className = 'icon-delete';
delButton.appendChild(delIcon);
delButton.onclick = function removeElement(event) {
delButton.onmousedown = function removeElement(event) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm kind of worried of this. That would make it easy to delete a phone number just by scrolling :/

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are right.. :( But I can't think on another solution. Ideas?

…etun

Using clientX and clientY instead mousedown

Adding a comment with the bug
albertopq added a commit that referenced this pull request Nov 7, 2012
Bug 796432 - Avoiding remove a phone when clicking RETURN key
@albertopq albertopq merged commit 21249d4 into mozilla-b2g:master Nov 7, 2012
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants