LostFocusController
doesn't work when used for elements inside a <lit-virtualizer>
#1155
Labels
enhancement
New feature or request
The controller waits for the next update before calling the callback which is great.
But when elements are in a
lit-virtualizer
we need to wait a bit more.A
<lit-virtualizer>
has a different rendering lifecycle. It has got an additional step which is the layout step: it is used to place the elements at the right position, depending on the scroll position.So, in that situation, the
LostFocusController
needs to wait for that step to be finished before calling the callback.The text was updated successfully, but these errors were encountered: