WebUI cr-toggle: Fix corner case of calling click() when disabled.
When disabled, calling click() (which simulates a 'click' event) should not change the state of the toggle. Bug: None Cq-Include-Trybots: luci.chromium.try:closure_compilation Change-Id: I2f1950c698fbc99abd7620d1573f592607f160e2 Reviewed-on: https://chromium-review.googlesource.com/1112719Reviewed-by:Hector Carmona <hcarmona@chromium.org> Commit-Queue: Demetrios Papadopoulos <dpapad@chromium.org> Cr-Commit-Position: refs/heads/master@{#570144}
Showing
Please register or sign in to comment