Table with expandable rows - Example doesn't work on Safari on iPhone
See original GitHub issueWhat is the expected behavior?
The rows expand like they do on Chrome and Firefox
What is the current behavior?
On an iPhone’s Safari browser, tapping on a row doesn’t expand the row.
What are the steps to reproduce?
The example of the expandable rows in: https://material.angular.io/components/table/examples doesn’t work on an iPhone. The stackblitx is the same. https://stackblitz.com/angular/gqvrlgbeqkv?file=app%2Ftable-expandable-rows-example.ts
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Angular 7.2.10 Angular Material 7.3.5
Tested on: iPhone X with IOS 12.1.4 iPhone XS with IOS 12.1.4
iPhone 6S with IOS 9 via Browserstack.com
Is there anything else we should know?
I tried adding import 'web-animations-js';
to the polyfills.ts on my own project and it didn’t seem to do anything.
Issue Analytics
- State:
- Created 4 years ago
- Comments:8
Top Results From Across the Web
Table columns show & hide based on width calculation is not ...
If you expand the window on the JS Fiddle example you will see the columns hiding and displaying based on the screen width....
Read more >Add or remove table rows and columns in Pages on iPad
, tap Table, then use the Adjustable button next to Rows or Columns, or tap the number of rows or columns to enter...
Read more >Lists and tables - Human Interface Guidelines - Apple Developer
Lists and tables present data in one or more columns of rows. A table or list can represent data that's organized in groups...
Read more >Table | Apple Developer Documentation
A container that presents rows of data arranged in one or more columns, optionally providing the ability to select one or more members....
Read more >Add or remove rows and columns in Numbers on iPad
In Numbers on iPad, add, delete, or hide rows and columns in a table, and freeze header rows.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I solved it very simply and is now working on all browsers and IOS (iphone). Just remove the “display: none” from the line below:
state('collapsed', style({height: '0px', minHeight: '0', display: 'none'})),
The line will look like this:state('collapsed', style({height: '0px', minHeight: '0'})),
For some reason I do not know the browser is confusing with the display transition, but as the height is zero it will have no influenceHi All,
I removed transition(‘expanded <=> collapsed’, animate(‘225ms cubic-bezier(0.4, 0.0, 0.2, 1)’)) its working below angular material version 7.3.3