Color Picker: Reset channel value container to last valid value on blur
The manual color picker allows users to select colors by manually entering color values in the RGB, HSL or HEX formats. If a user enters an invalid value, the value will be entered into the channel value container but will not be committed. While this behavior is reasonable, the problem is that user's invalid value continues to be reflected until they either choose a different color or close and re-open the popup. This change addresses this by resetting channel value containers to their last valid value whenever the container is blurred. Bug: 1021234 Change-Id: I4481f02d3a86d1c582bc87481743e96ae5aa6c52 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1906118 Commit-Queue: Sanket Joshi <sajos@microsoft.com> Reviewed-by:Mason Freed <masonfreed@chromium.org> Cr-Commit-Position: refs/heads/master@{#714105}
Showing
Please register or sign in to comment