web-components icon indicating copy to clipboard operation
web-components copied to clipboard

Remove usage of Polymer internal helpers from Lit based components

Open web-padawan opened this issue 2 years ago • 0 comments

Describe your motivation

While some components already provide Lit based versions, we still have a few Polymer imports like afterNextRender:

https://github.com/vaadin/web-components/blob/68a5c78fff76f213fae11b807e42b0841d52f232/packages/overlay/src/vaadin-overlay-mixin.js#L6

https://github.com/vaadin/web-components/blob/a57bae74645429380e44f281915c57b1df33def3/packages/date-picker/src/vaadin-date-picker-overlay-content-mixin.js#L6-L7

Describe the solution you'd like

Replace these with custom alternatives, e.g. afterNextRender essentially is requestAnimationFrame + setTimeout.

web-padawan avatar Nov 27 '23 09:11 web-padawan