Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

md-input-container doesn't display text while typing on Chrome iPad #2559

Closed
kamarouski opened this issue Apr 25, 2015 · 7 comments
Closed
Labels
P1: urgent Urgent issues that should be addressed in the next minor or patch release.
Milestone

Comments

@kamarouski
Copy link

Have an issue with input controls on iPad Chrome browser (iOS 8.3).

When I select a control and start typing input highlighting disappear together with typing text. If I change focus and select the control back, typed text appears. Same if I remove all the text and start typing again.

Works fine in Safari and with Chrome on Android.

I can reproduce it not for every input. The ones where this happens are inside md-content.

The markup looks like below:

<md-content flex layout="column" md-scroll-y layout-padding ng-view>
<div ng-controller="myCtrl as vm">
    <form name="myForm" novalidate class="some-form" ng-submit="myForm.$valid && vm.save(vm.model)" ng-cloak>
        <h3>Create </h3>
        <div layout="row">
            <md-input-container flex="45">
                <label>Some Name</label>
                <input name="someName" type="text" ng-model="vm.model.someName" required/>
                <div ng-messages="myForm.someName.$error" ng-show="myForm.$submitted || myForm.someName.$touched">
                    <div ng-message="required">Some name is required.</div>
                </div>
            </md-input-container>
           ...
          </div>
     </form>
</div>
</md-content>
@kamarouski kamarouski changed the title md-input doesn't display text while typing on Chrome iPad md-input-container doesn't display text while typing on Chrome iPad Apr 25, 2015
@mdelgadov
Copy link

About the same happens on IE 11 in small size screens... overflow bars appear on the right and the text is extremely small... this stopped happening for some time but looks we are having a regression.

@ThomasBurleson ThomasBurleson modified the milestone: 0.10.0 Apr 27, 2015
@ThomasBurleson ThomasBurleson self-assigned this Apr 27, 2015
@ThomasBurleson ThomasBurleson modified the milestones: 0.10.0, 0.11.0 Jun 16, 2015
@deltaepsilon
Copy link

@robertmesserle Something similar is happening to my website, Calligraphy.org. Try registering at https://www.calligraphy.org/app/register on iOS. Parts of the form disappear as soon as I focus on the email or password inputs. Safari appears to be the new IE.

@ThomasBurleson ThomasBurleson modified the milestones: 1.0-rc1, 1.0-rc2, 1.0-rc3 Oct 27, 2015
@ThomasBurleson ThomasBurleson modified the milestones: 1.0-rc3, 1.0-rc4 Nov 7, 2015
@ThomasBurleson ThomasBurleson modified the milestones: 1.0-rc4, 1.0-rc5 Nov 16, 2015
@ThomasBurleson ThomasBurleson removed this from the 1.0-rc5 milestone Nov 25, 2015
@ThomasBurleson ThomasBurleson modified the milestones: 1.0-rc6, 1.0-rc5 Nov 25, 2015
@robertmesserle robertmesserle modified the milestones: post-1.0 , 1.0-rc6 Dec 2, 2015
@ThomasBurleson ThomasBurleson modified the milestones: post-1.0 , Backlog Jan 5, 2016
@ThomasBurleson ThomasBurleson added P1: urgent Urgent issues that should be addressed in the next minor or patch release. and removed priority: high labels Jan 13, 2016
@jpike88
Copy link
Contributor

jpike88 commented Feb 8, 2016

It basically renders any form longer than the initial page unusable. This is a critical usability bug.

It happens using WKWebView, which essentially means it happens on all iOS devices.

In the meantime I'll have to abandon use of md-inputs altogether.

@nicolasalcina
Copy link

I found something interresting in page 12 of google ;) :
https://forum.ionicframework.com/t/cant-edit-the-input-fields-edit-video/7268/28

it fixed the issue for me !
.run(['$document', '$window', function ($document, $window) { var document = $document[0]; //unwrap the document from the jquery wrapper // RMB HACK FOR IPAD NOT FOCUSING INPUTS INSIDE IFRAME document.addEventListener('click', function (event) { var hasFocus = document.hasFocus(); if (!hasFocus) $window.focus(); }); }])

@jpike88
Copy link
Contributor

jpike88 commented Feb 13, 2016

That's a little extreme in my opinion.

I was given a workaround in #7078 which specifically targets the fields via CSS, no javascript needed.

@ThomasBurleson ThomasBurleson modified the milestones: Backlog, Deprecated Apr 20, 2016
@sssaranya2019
Copy link

Hey could anyone help. This exists yet I tried adding flicker even. Its not working with ios 12

@Splaktar
Copy link
Member

@sssaranya2019 this issue is closed. Please open a new issue using the issue template that includes a CodePen reproduction of the issue. Please reference this issue in your new issue.

@angular angular locked as resolved and limited conversation to collaborators Sep 17, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
P1: urgent Urgent issues that should be addressed in the next minor or patch release.
Projects
None yet
Development

No branches or pull requests

10 participants