-
-
Notifications
You must be signed in to change notification settings - Fork 545
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
Fixed the behavior of dropdownlist when clicked outside of its scope. #1838
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, raghav1030, for creating this pull request and contributing to LinksHub! 💗
The maintainers will review this Pull Request and provide feedback as soon as possible! 😇
We appreciate your patience and contribution, Keep up the great work! 😀
Can you post a screenshot of your solution in the screenshot form @raghav1030? |
It can't be seen in a screenshot. It behaves same as I mentioned in the issue #1829 . You can check the screen recordings that I provided in that issue. Still, if you need those again, Please tell? ps : you can check the expected behavior screen recording in the issue #1829 to judge what I have done in this PR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well done @raghav1030! @Anmol-Baranwal, you're up! :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed the unnecessary console.log(). Please tell if there's any other room for improvement? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After clicking the header: where social icons are present.
The category sidebar closes, but it doesn't redirect to home page. Please make the change to incorporate this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm experiencing this bug here, not just outside of the sidebar, it closing the category dropdown when I'm clicking anywhere, can we fix this?
LinksHub.-.Frontend_animations.-.Brave.2023-10-08.16-00-49.mp4
I just want to know what changes do you expect when a user clicks outside and the dropdown closes? Possible Behaviors :
OR
|
Thanks for noticing, I have fixed this issue and will commit changes once I get clarity on the previous comment. :) |
@raghav1030 it should close the dropdown when clicked outside of the sidebar, but not when clicking on buttons or icons |
Yeah I have solved that bug, I am talking about the changes as requested by @Anmol-Baranwal. |
This comment :) |
I have made all the necessary changes. Please check if the issue still persists in any case. I have restricted all potential elements to inherit this click outside behavior where it could have misbehaved. Fyi : I have added a "data-custom='restrict-click-outside' " attribute in each component where i want to restrict the onClickOutside hook's functionality. I have made such a change that if anyone needs to restrict any component, then one has to add this attribute to the parent HTML element and the property will be applied to its each and every child element/component. In short, on applying this custom data attribute, the element and its children will not allow the dropdown list to close. |
@rupali-codes Let me know, I will approve it. |
Sure, here it is. 2023-10-09.23-49-58.mp4 |
@raghav1030 it works fine for the card and its popup. Can you do the same for topbar icons? |
Just added the required functionality. In this commit I restricted the topbar icons to close the dropdown list upon clicking. You can check how it works now : 2023-10-10.20-37-30.mp4Please tell if there's any room for improvement? |
@raghav1030 |
@rupali-codes |
After the merge conflicts are solved of course @raghav1030! :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks perfect to me
@raghav1030 we are experiencing some bugs,, when i click on this pagination buttons, its closing the dropdown and never going to the other page. so fix it, can you one thing, just close the dropdown when clicked on the Topbar only, not anywhere else. Please me or @Anmol-Baranwal if you need any assistance, and we want this to be fixed ASAP. |
@raghav1030 this is breaking the current codebase, we'll have to revert this PR in order to fix the current situation, please raise a NEW PR containing all the changes of this PR and the suggested one (pagination bug). |
… of its scope (rupali-codes#1838)" (rupali-codes#1963) This reverts commit b1eec4b.
Fixes
Closes #1829
Changes proposed
Screenshots
Same behavior as quoted in #1829
Note to reviewers