Thanks a lot for addressing this - greatly appreciated. That was quite important to me.
I can confirm that it works perfectly now.
When opening the modal, the modals’ closing element receives auto-focus when implemented accordingly, when closing the modal the same happens vice versa.
When testing, I came across some weird behaviour.
Tested with and without the button, so it seems like a menu issue.
It appears that it was introduced with this change, in the beta it seems to be fine.
Maybe you can have a look at it.
Indeed, I can confirm this behaviour when the menu is the first element in its parent. I do also believe this doesn’t bear any relation with the latest updates, although I will be checking on previous versions.
This is definitely a bug with the Menu block focusing logic.
You could be right here. I was probably testing with a different block structure (possibly the same like yours, directly from the library) on the other installation. Sorry for the confusion.
Your demo put me on the right track though