-
Notifications
You must be signed in to change notification settings - Fork 269
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
[ACS-8918] search date filter changing between created and modified tabs slides the text inside the tabs too #10455
Conversation
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.
can you resolve the sonar cloud issues please?
Quality Gate passedIssues Measures |
done |
private readonly intersectionObserver = new IntersectionObserver( | ||
(entries) => { | ||
if (!entries[0].isIntersecting) { | ||
this.tabGroup.selectedIndex = (this.selectedIndex + 1) % this.tabsContents.length; |
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 do we need to set this.tabGroup.selectedIndex
twice?
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.
This is some angular material problem when we use tabs together with some kind of overlaps like on below screenshot. Basically the problem is following:
When we close this popup then seems like Tabs component becomes broken because after reopening popup Tabs component doesn't know on which tab it was before closing so when we try to switch tab we can see for a moment strange text sliding effect.
To resolve that problem I wrote code which observes for hiding/showing component and I do single switching of tabs so Tabs component can restore it's state. It seems like only solution for that problem, because we can't just "destroy" tabs component and recreate it because we need to keep previous state.
Please check if the PR fulfills these requirements
What kind of change does this PR introduce? (check one with "x")
What is the current behaviour? (You can also link to an open issue here)
https://hyland.atlassian.net/browse/ACS-8918
What is the new behaviour?
Text is not sliding when tabs are switched for date filter.
Does this PR introduce a breaking change? (check one with "x")
If this PR contains a breaking change, please describe the impact and migration path for existing applications: ...
Other information: