-
-
Notifications
You must be signed in to change notification settings - Fork 78.9k
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
input[type=date] with empty value shrunken height on mobile #23307
Comments
@rixlabs Same here for both Chrome and Safari on iPhone. Quick-and-dirty workaround (YMMV): input[type="date"] {
min-height: 2.5rem;
} |
@ianbrandt I did exactly the same... |
Updated my workaround to also account for #18842: input[type="text"],
input[type="email"],
input[type="date"] {
height: 2.375rem;
} So far tested on Safari and Chrome on iOS and macOS, and Edge on Windows 10. (In case it's not obvious you'll want to add any other input types you use, e.g. "password", "url", etc.) |
I found it not only shorten the but also move the input slightly lower when placing inside a div. |
I encountered exactly the same problem in ios 11 and bootstrap 4.1.2: the temporal fields shrink if no initial value is selected. |
My solution was:
|
This should’ve been solved in v4.1.3 when we added fixed heights to inputs. |
@mdo , I see that the fixed height has been added and so that fixes the collapsing issue.. quick question though. Are you aware of any way to prevent the hidden value issue? Although the height is no longer collapsed, I am unable to see a pre-populated value on an input[type="date"] unless I first focus on it, then the value does show. |
I've tested again with the last version and it is indeed fixed! Check here : http://jsfiddle.net/7fxdt260/ Tested on: Safari for iPad , iOS 10.1.1 |
@mdo I think it's not solved yet... I'm using the latest version but the problem still present.... |
I still have the problem, but this works for me: |
@MartijnCuppens @ysds #28917 mentions the fixed height change, but I didn't see that in the diff. Bad cross-reference, or something I'm missing? |
I solved critical issue on the iphone with your solution. |
On iPad, an input of type date that doesn't have any initial value appear smaller until touched or a date selected.
I tested the same situation on Chrome for Android and there is working fine
Reduced test case here: http://jsfiddle.net/ctesyxxx/1/
Tested on: Safari for iPad , iOS 10.1.1
The text was updated successfully, but these errors were encountered: