• Esmael El-Moslimany's avatar
    Settings WebUI: manage-profile update profile name on route change, · ea7257f1
    Esmael El-Moslimany authored
    cr-input skip validation when old and new values are both falsy
    
    After validation, if the input value is invalid, the red underline will
    be drawn under the input. When initializing the cr-input, the value
    switches from undefined to '' and then it is updated to new values from
    there. This causes an issue because the underline opacity and width
    have transition. So if the value is valid after initialization, the
    underline will appear blue and then transition away (the color change
    is instant). This CL addresses this by skipping validation until a real
    value has been set.
    
    Bug: 907022
    Change-Id: I2369cb41467c3d6ee9b3b30004188579df107906
    Reviewed-on: https://chromium-review.googlesource.com/c/1345415Reviewed-by: default avatarScott Chen <scottchen@chromium.org>
    Commit-Queue: Esmael El-Moslimany <aee@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#610200}
    ea7257f1
manage_profile.js 3.87 KB