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

Input is not working for type date in iOS #8001

Closed
joelharisonlobo opened this issue Oct 24, 2017 · 2 comments · Fixed by #8543
Closed

Input is not working for type date in iOS #8001

joelharisonlobo opened this issue Oct 24, 2017 · 2 comments · Fixed by #8543
Assignees
Labels
P2 The issue is important to a large percentage of users, with a workaround

Comments

@joelharisonlobo
Copy link

Bug, feature request, or proposal:

Textbox is not working in iOS. I'm new to material design i have an application page in my page in that there is a field for date of birth there i have specified type = date in input but when i hosted the website only that textbox is not working in iOS.

What is the expected behavior?

I did all the inputs without specifying its type but for date of birth i needed to specify type as date and needed the material styles. but date type is not working in iOS

What is the current behavior?

for input with date type is not working in iOS. Its not even focusing in any of the browsers

What are the steps to reproduce?

In this link you can see my problem http://kitex.s3-website-us-west-2.amazonaws.com.
For android its working perfectly but in iOS its not even focusing.

<mat-form-field class="fields-full-width"> <input type="date" matInput placeholder="Date of birth" #DOB [max]="today" (keyup)="dobValidation(DOB)" (input)="dobValidation(DOB)"> </mat-form-field>

This is my code for date of birth

What is the use-case or motivation for changing an existing behavior?

There is a field for date of birth. Its not even focusing on that field. its like completly disabled.

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

I'm using Angular 2 (@angular/cli: 1.1.1), Material(2.0.0-beta.12), in windows 10

for testing i have used iOS 11.0.3. In that safari and crome are the brosers i have used . But in both
date didn't worked

employee-registration.zip

Is there anything else we should know?

material date picker in material.angular.io site doesn't have clarity of how to use it.

@crisbeto
Copy link
Member

crisbeto commented Oct 24, 2017

I managed to reproduce it as well. It seems like iOS collapses the input into a 1px by 100% strip.

Edit: after some more digging it seems like this issue has been around for a while. It happens because we're overriding the background color. See https://stackoverflow.com/questions/18381594/input-type-date-appearance-in-safari-on-ios

@jelbourn jelbourn added the P2 The issue is important to a large percentage of users, with a workaround label Oct 29, 2017
@crisbeto crisbeto self-assigned this Nov 19, 2017
crisbeto added a commit to crisbeto/material2 that referenced this issue Nov 19, 2017
Fixes an issue that caused certain input types to collapse into 1px tall strips, preventing users from being to tap on them on iOS.

Fixes angular#8001.
crisbeto added a commit to crisbeto/material2 that referenced this issue Nov 29, 2017
Fixes an issue that caused certain input types to collapse into 1px tall strips, preventing users from being to tap on them on iOS.

Fixes angular#8001.
crisbeto added a commit to crisbeto/material2 that referenced this issue Nov 29, 2017
Fixes an issue that caused certain input types to collapse into 1px tall strips, preventing users from being to tap on them on iOS.

Fixes angular#8001.
tinayuangao pushed a commit that referenced this issue Dec 1, 2017
Fixes an issue that caused certain input types to collapse into 1px tall strips, preventing users from being to tap on them on iOS.

Fixes #8001.
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
P2 The issue is important to a large percentage of users, with a workaround
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants