std-switch: Fix no transition in a page with text selection
'transitionrun' event is delayed if a page has text selection, and the transition detection logic in style.mjs didn't work in this case. After this CL, we remove '$part-transitioning' part in attributeChangedCallback. This works well because Blink doesn't compute style for <std-switch> before calling attributeChangedCallback for 'on' attribute. Change-Id: I8f25eca61fd52441d06bf86173c19d1c764bb859 Bug: 992454 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1758002Reviewed-by:Fergal Daly <fergal@chromium.org> Commit-Queue: Kent Tamura <tkent@chromium.org> Cr-Commit-Position: refs/heads/master@{#688427}
Showing
Please register or sign in to comment