[Webkit-unassigned] [Bug 166930] New: Value of a color input does not update visually when using setAttribute

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jan 11 10:22:39 PST 2017


https://bugs.webkit.org/show_bug.cgi?id=166930

            Bug ID: 166930
           Summary: Value of a color input does not update visually when
                    using setAttribute
    Classification: Unclassified
           Product: WebKit
           Version: Safari Technology Preview
          Hardware: Macintosh
                OS: macOS 10.12
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Forms
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: dvpdiner2 at gmail.com

With an <input type="color">, if you set the value dynamically via setAttribute('value', '#ff0000') it still shows the input color visually as black rather than the updated value (red, in this case).
The actual value of the input is correct, and if you open the color picker then it shows the correct value selected.

Here's an example JSFiddle which starts out black and sets the value via setAttribute after 1.5 seconds: https://jsfiddle.net/1wLsa0jc/

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


More information about the webkit-unassigned mailing list