You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using <sl-color-picker hoist> causes the following warning in Chrome:
lit-html.ts:2057 [Violation] Added non-passive event listener to a scroll-blocking 'touchmove' event. Consider marking event handler as 'passive' to make the page more responsive. See https://www.chromestatus.com/feature/5745543795965952
Describe the bug
Using
<sl-color-picker hoist>
causes the following warning in Chrome:This originates from
shoelace/src/components/color-picker/color-picker.component.ts
Line 491 in eb42671
If the event handler does need to be blocking, the warning can be silenced by explicitly specifying
passive: false
:To Reproduce
Place a hoisted
sl-color-picker
on the page:And look at the developer console in Chrome.
Demo
https://codepen.io/theacodes/pen/ExzYGVj)
Browser / OS
macOS 14.4.1 23E224 arm64
The text was updated successfully, but these errors were encountered: