view_components
view_components copied to clipboard
Using the Dialog viewcomponent, focus is always returned to assigned button
I noticed (chatting with @keithamus) that using the Dialog viewcomponent, when the dialog closes, focus is always returned to the assigned trigger button. But in fact it should be returned to whatever caused the dialog to open, e.g. if you have multiple buttons that can trigger the dialog, the one that you clicked should get focus back.