-
-
Notifications
You must be signed in to change notification settings - Fork 239
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
Safari numeric input not allowing decimals #167
Comments
I'll try to investigate but I can't promise anything - the only Safari I can play with has no developer tools. |
Maybe this might cause this issue. If so, it's even weirder that it happens only on Safari. |
Yes, that is the cause. The only way I see is to rework I'll leave it for now - if you see another way - please, let me know. |
Created a PR for this, targeting BS3 & BS4 - I don't know if this behavior exists in the other packages, I do not use semantic. |
(ping) I didn't have much time recently and I probably won't in the next few days, but I guarantee, that I'll get to it within next two weeks. I'm planning to create another class which will be compatible with |
Sounds good, I'll leave you to your vision. Thanks for maintaining such a
wonderful package!
…On Sat, Jan 28, 2017 at 12:53 PM, Radosław Miernik ***@***.*** > wrote:
*(ping)* I didn't have much time recently and I probably won't in the
next few days, but I guarantee, that I'll get to it within next two weeks.
I'm planning to create another class which will be compatible with
BaseField.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#167 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AH-flJj5jYNTAy-LmUH80hAGYMDvholUks5rW4CFgaJpZM4LoVkr>
.
|
Well, it was almost two weeks, so I've implemented a modified version of your solution (thanks!), but it's not a future-proof solution. It's working as expected, but now |
Strange issue here with Safari and numeric inputs.
In Safari when adding a numeric field using AutoField, the decimal cannot be typed unless its at the beginning of the input. So I cannot type 1.5, but could type .5. but not 0.5 . Oddly, you can type 15 then cursor back and enter a decimal to get to 1.5 . Also, the arrows up and down do work, so if you enter 1, and arrow up, 1.01 is entered (my step is 0.01). Initially I thought this was a Safari oddity with type="number" fields, but I pasted the exact HTML generated from uniforms and added it directly, and Safari allows me to insert decimals.
Schema:
Usage:
This generates the HTML:
When I add this HTML directly in the code outside of uniforms it works as expected, but not from the AutoField generated code.
![safari_decimal](https://cloud.githubusercontent.com/assets/8363924/22115972/033cc0f6-de3d-11e6-93ca-197914a2e22c.png)
Chrome and Firefox do not have this issue, decimals can be entered as expected
The text was updated successfully, but these errors were encountered: