Conversation
Crashillo
reviewed
Oct 2, 2023
| @@ -0,0 +1,10 @@ | |||
| $(() => { | |||
Contributor
There was a problem hiding this comment.
This is not the way we're proposing to work with javascripts. Not only due to you're trusting on JQuery to make it work, but the logic behind is not being initializated in the index.js file, within the initializer function.
In the following lines, you'll notice how we can control when a javascript file is really being used or not:
decidim/decidim-core/app/packs/src/decidim/redesigned_index.js
Lines 157 to 177 in 5779976
cc/ @decidim/maintainers
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🎩 What? Why?
Scroll down when clicking on the "Jump to" button of dropdown menus.
As I think it's not feasible to use this behavior as the default one, I included
data-scroll-to-menufor the dropdown buttons where you want to use it.📌 Related Issues
Testing
From a mobile phone:
📷 Screenshots
Screen.Recording.2023-09-29.at.14.01.51.mov