-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bugfix for #10927 - Body steal focus when opening folder overlay #10983
Bugfix for #10927 - Body steal focus when opening folder overlay #10983
Conversation
Hi there @BatJan, thank you for this contribution! 👍 While we wait for one of the Core Collaborators team to have a look at your work, we wanted to let you know about that we have a checklist for some of the things we will consider during review:
Don't worry if you got something wrong. We like to think of a pull request as the start of a conversation, we're happy to provide guidance on improving your contribution. If you realize that you might want to make some changes then you can do that by adding new commits to the branch you created for this work and pushing new commits. They should then automatically show up as updates to this pull request. Thanks, from your friendly Umbraco GitHub bot 🤖 🙂 |
@BatJan I think it was also an issue when creating a folder under media types. The part with |
@bjarnef Yes it indeed is - I'm going to push shortly. Just need to figure out an issue with the view for https://github.com/umbraco/Umbraco-CMS/blob/23675a33ee2383cf7ceef38cc2d4942c46e3ee6c/src/Umbraco.Web.UI.Client/src/views/datatype/create.html where I see a "Autofocus processing was blocked because a document already has a focused element" after making the change... So need to figure that one out before comitting the extra changes - But good spot 🙌🏻 |
@bjarnef Ok, found it - Turns out that for some reason the native But should be all good now 👍🏻 Let me know if you spot anything I might have missed - Have been checking all the create.html views I could find. |
@BatJan yeah, I also noticed one dialog using the native |
Oh dear - The changes I though I pushed for this PR ended up in an old branch doh! 🙈 All good now! |
Prerequisites
If there's an existing issue for this PR then this fixes #10972
Description
When creating a folder under "Settings -> Document types" the input field for the name that appears don't get autofocused. I suspect it's due to the section containing the input element is hidden using
ng-show
instead ofng-if
making the autofocus directive compete with all other places this directive might have been used and also settled on the element to focus on before the dialog for naming the folder appears. Changing it to useng-if
instead makes the directive run and set focus again.Before
After