Skip to content

bug: Date based inputs behave poorly with focus cloning #3944

@jeremyrussell

Description

@jeremyrussell

Type: bug

Platform: ios 8 webview

When an input field is given focus, it is cloned by ionic and moved off screen, from what I have read this feature was introduced to resolve cursor issues. This functionality exhibits a weird behaviour for date based inputs (i.e. date, time, datetime-local and month), in that when the input has focus and the page is scrolled the value of the input is not displayed. I'm not sure why this is, however I found that by simply excluding date based inputs from the cloning process, my problem was resolved.

Here is my simple code change: master...jeremyrussell:cloned-input-focus-scroll-issue

I have also uploaded a video to youtube to illustrate the issue:
https://youtu.be/3vFXEEDXiGg

And, here's a codepen: http://codepen.io/jeremyrussell/pen/bdreGK
Note, however that the app needs to be run as a hybrid app to reproduce the error

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions