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

Form input type=number with class="form-control" behaves erratically while selecting (in chrome) #29528

Closed
mverdaguer opened this issue Oct 16, 2019 · 4 comments

Comments

@mverdaguer
Copy link

@mverdaguer mverdaguer commented Oct 16, 2019

Description:
When you try to select / move the keyboard caret using the mouse inside an input having type=number and class form-control it does not select the text properly. (Only in Chrome).

It seems to work fine when the input does not have the form-control class, it also works fine in other browsers such as Firefox.

Minimal case:
https://codepen.io/verdegang/pen/ExxyKRK

Steps to reproduce:
Just try to select a subpart of the number inside the input, or to change the caret position using the mouse. You'll notice that it behaves erratically.

Environment:
Device: MSI laptop using .
OS: Ubuntu 18.04.3 LTS (The same happens using a macOS with el Capitan).
Browser: Chrome
Version: 77.0.3865.90
Bootstrap version: v4.3.1

@tmorehouse
Copy link
Contributor

@tmorehouse tmorehouse commented Oct 16, 2019

Input type search also has similar issues with trying to position the insertion point at the beginning of the input using the mouse.

@swaibat
Copy link

@swaibat swaibat commented Oct 26, 2019

true @tmorehouse becouse i tested and found a similar issue

@MartijnCuppens
Copy link
Member

@MartijnCuppens MartijnCuppens commented Dec 8, 2019

Is this still an issue, can't seem to reproduce this in 78.0.3904.108?

@MartijnCuppens
Copy link
Member

@MartijnCuppens MartijnCuppens commented Jan 9, 2020

Seems to be fixed, closing this

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

4 participants