-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Public Schedule: Clicking on a filter moves the page #5826 #5849
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/eventyay/open-event-frontend/8t6059who |
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.
issue is still there. page is still moving after filtering sessions.
This pull request introduces 1 alert when merging ef35cdd into 3a1e29c - view on LGTM.com new alerts:
|
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.
Try this...
just remove sessionChanged() action----> line 21-29.
and also remove 'sessionChanged' from this.addobserver()----> in line 18.
according to me this resolve issue.
scrollTop: $('#session-heading').offset()?.top | ||
}); | ||
} | ||
this.set('preserveScrollPosition', true); |
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.
why created 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.
After only removing session changed whenever we click on filter page will reload and moves up using previous scoll position this well save the earlier scroll postion of page and didnt moves the page up and down
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.
you are right. 👍
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.
good work @akash2408
@iamareebjamal sir, looks good to me. please review |
Codecov Report
@@ Coverage Diff @@
## development #5849 +/- ##
============================================
Coverage 23.46% 23.46%
============================================
Files 512 512
Lines 5460 5459 -1
Branches 63 63
============================================
Hits 1281 1281
+ Misses 4163 4162 -1
Partials 16 16
Continue to review full report at Codecov.
|
It is not working. The page should not move at all. Date, track and rooms still result in moving the page. The page should not move at all where-ever it is. It currently moves to the heading session. |
Sir, Thats why i remove the content of sesssion changed function.The gif was of previous commit .please review again |
@akash2408 That's because you pushed from development branch. Never ever create a PR from development branch. Now, we can't preview your work |
Superseded by #5878 |
Fixes #5826
Short description of what this resolves:
adding ember install ember-router-scroll
Changes proposed in this pull request:
Checklist
development
branch.