Repository navigation
refactor: add overlay.restoreFocusNode and vaadin-overlay-closing event - #3144
Conversation
29b22df to
c4224be
Compare
Co-authored-by: Sergey Vinogradov <mr.vursen@gmail.com>
|
Kudos, SonarCloud Quality Gate passed!
|
|
Maybe it’s just me, but I find the event naming slightly confusing (close vs closing). Not a big issue, as documentation will make it clear. For the future self: I’d consider using |
|
Note that the overlay API is for internal purposes only. We can rename it anytime. |
|
We were earlier discussing an additional event (doesn't exist yet), that would dispatch after |
|
This ticket/PR has been released with platform 23.0.0.alpha1 and is also targeting the upcoming stable 23.0.0 version. |








Needed by #3104
Changes derived as a separate PR from #3138
Add new API to
<vaadin-overlay>:restoreFocusNode: If set, the overlay will focusrestoreFocusNodeon close instead of the automatically obtained reference to the last focused element before the overlay got opened.