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

[WIP] fix(driver:keyboard): fix typing negative numbers with existing text … #4768

Closed
wants to merge 1 commit into from

Conversation

kuceb
Copy link
Contributor

@kuceb kuceb commented Jul 19, 2019

@@ -575,9 +580,11 @@ const $Keyboard = {
return
}

const isFirstSymbol = !valueLength || (selectionLength === valueLength)

//# only type '.' and '-' if it is the first symbol and there already is a value, or if
//# '.' or '-' are appended to a digit. If not, value cannot be set.
Copy link
Member

Choose a reason for hiding this comment

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

I think there may be some missing logic still to match the spec - notably allowing e, E, and +. Also - I'd like a link to the spec in the comments if possible because otherwise I'm just like - where did this logic definition even come from?

@jennifer-shehane jennifer-shehane changed the title fix(driver:keyboard): fix typing negative numbers with existing text … [WIP] fix(driver:keyboard): fix typing negative numbers with existing text … Jul 24, 2019
@kuceb
Copy link
Contributor Author

kuceb commented Jul 24, 2019

Going to close this and put these changes in upcoming simulated type fixes PR

@kuceb kuceb closed this Jul 24, 2019
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

Successfully merging this pull request may close these issues.

cannot type negative number into number input with text selection
2 participants