[Webkit-unassigned] [Bug 185982] New: iOS: setting 'defaultValue' of input type=date from script does not cause UI update

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri May 25 09:01:08 PDT 2018


            Bug ID: 185982
           Summary: iOS: setting 'defaultValue' of input type=date from
                    script does not cause UI update
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: iPhone / iPad
                OS: iOS 9.3
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Forms
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: smcgruer at chromium.org
                CC: cdumez at apple.com, wenson_hsieh at apple.com

What steps will reproduce the problem?
(1) Create an input type=date
(2) From script, set the 'defaultValue' to a value
(3) Observe the input element's rendered UI

What is the expected result?

The UI should update to show the default value (since there was no previous selection). This happens on desktop Chrome.

What happens instead?

The UI doesn't update; the date picker is blank. However if you select it, the date picker widget appears and shows that the default value is set.

See test case http://output.jsbin.com/vocunov 

Note that this comes from a React bug that they found and worked around, sadly without informing browser vendors at the time :( - https://github.com/facebook/react/issues/7233

We recently fixed this in Chromium Android (http://crbug.com/838898), and I have a similar patch (to be uploaded shortly) which fixes it in WebKit iOS.

You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20180525/f6bbd10d/attachment.html>

More information about the webkit-unassigned mailing list