You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can confirm this issue, and it doesn't seem like the workaround posted in #5269 solves this specific issue. I've tried putting an *ngIf as suggested there on both a containing div and on the table itself, but the T-s still show up when switching to the tab containing the table.
Seems what happens is that the style of the div element containing the arrows does not get it's opacity- and transform- values set.
The issue seems to happen only if the table is not on the first (i.e. initial) tab.
I was using angular 5.2.0 and material 5.2.1, but after updating to angular 5.2.7 and material 5.2.4 the issue is the same.
I also tried upgrading material (and cdk) to 6.0.0-beta.2, still with angular 5.2.7, but the issue remains even there, while the issue described in #5269 is said to be fixed in that version.
@julianobrasil, that code is not using the mat-table component, only sorting functionality on a normal table. If you look here, you'll see the issue persists - I forked your code so the package versions are the same: https://stackblitz.com/edit/angular-19yihc-anlvte
The table on the initial tab looks fine, the table on the second tab does not, but the code for both tables is identical.
@tapinambur0508 Thank you, that workaround does the trick, and with no apparent side-effects as far as I can tell :)
@julianobrasil, could you insert my solution of this problem in next version of angular/material if it's possible? I simply copy sort header arrow style form version 5.1.1
Oh, it's not up to me this kind of thing. The actual members of material team are the ones who are responsible for these decisions. In this case, I think @andrewseguin could give you more info.
changed the title [-]Trouble with arrows if use mat-table in mat-tabs[/-][+][Sort] Animations not playing correctly for projected content[/+]on Apr 23, 2018
Activity
julianobrasil commentedon Feb 22, 2018
It seems to be related to this #5269 (comment)
tapinambur0508 commentedon Feb 22, 2018
Does it work only in material 6.0?
julianobrasil commentedon Feb 22, 2018
It's a new feature. It needs material >= 6.0.0-beta.0
tapinambur0508 commentedon Feb 22, 2018
Do you fix this trouble in material 5?
julianobrasil commentedon Feb 22, 2018
In that topic I linked above there are some workarounds. @lula's seemed to be the preferred one.
NorseJedi commentedon Mar 7, 2018
I can confirm this issue, and it doesn't seem like the workaround posted in #5269 solves this specific issue. I've tried putting an *ngIf as suggested there on both a containing div and on the table itself, but the T-s still show up when switching to the tab containing the table.
Seems what happens is that the style of the div element containing the arrows does not get it's opacity- and transform- values set.
The issue seems to happen only if the table is not on the first (i.e. initial) tab.
I was using angular 5.2.0 and material 5.2.1, but after updating to angular 5.2.7 and material 5.2.4 the issue is the same.
I also tried upgrading material (and cdk) to 6.0.0-beta.2, still with angular 5.2.7, but the issue remains even there, while the issue described in #5269 is said to be fixed in that version.
tapinambur0508 commentedon Mar 7, 2018
I fixed that issue by added in main css file this:
julianobrasil commentedon Mar 7, 2018
@ensnared, it looks like normal here (material 6 beta.2): https://stackblitz.com/edit/angular-19yihc-xbntvx
NorseJedi commentedon Mar 7, 2018
@julianobrasil, that code is not using the mat-table component, only sorting functionality on a normal table. If you look here, you'll see the issue persists - I forked your code so the package versions are the same:
https://stackblitz.com/edit/angular-19yihc-anlvte
The table on the initial tab looks fine, the table on the second tab does not, but the code for both tables is identical.
@tapinambur0508 Thank you, that workaround does the trick, and with no apparent side-effects as far as I can tell :)
tapinambur0508 commentedon Mar 15, 2018
@julianobrasil, could you insert my solution of this problem in next version of angular/material if it's possible? I simply copy sort header arrow style form version 5.1.1
julianobrasil commentedon Mar 15, 2018
Oh, it's not up to me this kind of thing. The actual members of material team are the ones who are responsible for these decisions. In this case, I think @andrewseguin could give you more info.
tapinambur0508 commentedon Mar 16, 2018
@andrewseguin, could you add my changes for sort arrow in next release angular?
[-]Trouble with arrows if use mat-table in mat-tabs[/-][+][Sort] Animations not playing correctly for projected content[/+][-][Sort] Animations not playing correctly for projected content[/-][+][Sort] Animations not playing correctly[/+]vadost commentedon May 3, 2018
@tapinambur0508 Your solution doesn't work correctly if you set initial sorting for the table, in this case one icon should be visible
vadost commentedon May 3, 2018
@andrewseguin When can you fix it?
tapinambur0508 commentedon May 4, 2018
@vadost, you can use version 5.1.1 if it's not critical for you
fix(material/sort): simplify animations
fix(material/sort): simplify animations
fix(material/sort): simplify animations (#30057)
fix(material/sort): simplify animations (angular#30057)
angular-automatic-lock-bot commentedon Dec 28, 2024
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.