Skip to content
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

Playlist page: Prevent autofocus on add-track component #3168

Merged
merged 4 commits into from
Feb 10, 2025

Conversation

MonkeyDo
Copy link
Member

@MonkeyDo MonkeyDo commented Feb 7, 2025

Wait until #3149 is merged, will probably need rebasing after that

This focus-on-page-load had a good intent, but on the playlist page it scrolls to the bottom of the page automatically which is annoying.
In some components it is desirable, but not for the playlist page, so I added an autofocus option that defaults to true (keeps it the same for other components).

There is a button at the top that takes you to the add-track component, so I made that trigger focus on the input component instead.

MonkeyDo and others added 3 commits February 7, 2025 13:58
This focus-on-load had a good intent, but it scrolls to the bottom of the page automatically which is annoying.
In some components it is desirable, but not for the playlist page, so I added an autofocus option that defaults to true (keeps it the same for other components)
There is a button at the top that takes you to the add-track component, so I made that trigger focus on the input component instead.
@MonkeyDo MonkeyDo marked this pull request as ready for review February 10, 2025 11:45
Now that we call the focus method on the addtrack input, this button should not be a link but an actual button instead
@MonkeyDo MonkeyDo merged commit 0fa1341 into master Feb 10, 2025
3 checks passed
@MonkeyDo MonkeyDo deleted the remove-playlist-addtrack-autofocus branch February 10, 2025 12:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants