New issue
Advanced search Search tips

Issue 868894 link

Starred by 1 user

Issue metadata

Status: Duplicate
Merged: issue 118639
Owner:
Closed: Aug 1
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 2
Type: Bug



Sign in to add a comment

Cancelling keydown events for periods does not work in number inputs

Reported by es...@henriksen.is, Jul 30

Issue description

Steps to reproduce the problem:
1. Set up a keydown event listener on a number input field
2. The keydown input field calls event.preventDefault() on events with key "."
3. Focus the input field
4. Type "."
3. 

See also the example file.

What is the expected behavior?
The event is cancelled and no period is input

What went wrong?
The event is not cancelled and the input recieves the key event, resulting in the comma being input.

The key event has a type property of Unidentified and keyCode 229 (period ordinarily has a keyCode of 188).

Did this work before? N/A 

Does this work in other browsers? Yes

Chrome version: 67.0.3396.87  Channel: stable
OS Version: 8.1.0
Flash Version: 

This is also the case with commas if lang is set to a language which accepts comma as a decimal separator. For example "nb". 

This works on chrome desktop.
 
keydown-events-number-input.html
1.8 KB View Download
Labels: Needs-triage-Mobile
Cc: chelamcherla@chromium.org
Labels: Target-70 M-70 Triaged-Mobile FoundIn-70
Status: Untriaged (was: Unconfirmed)
Tested this issue on Android and able to reproduce this issue.

Steps Followed:
1. Launched chrome
2. Naviagted to given html page, inputed some numbers and now inputed "." -- observed "." in number input field.

Chrome versions tested:
60.0.3072.0, 68.0.3440.70 ; 70.0.3506.0(canary)

OS:
Android 9.0

Android Devices:
Pixel XL

This seems to be a Non-Regression issue as same behavior is seen from M-60 builds. Leaving the issue as Untriaged  for further input's on this issue.

Please navigate to below link for log's --
go/chrome-androidlogs/868894
 
Thanks!
Components: -Blink>HTML Blink>Forms>Number Blink>Input
Mergedinto: 118639
Owner: tkent@chromium.org
Status: Duplicate (was: Untriaged)

Sign in to add a comment