question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Table with expandable rows - Example doesn't work on Safari on iPhone

See original GitHub issue

What 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:closed
  • Created 4 years ago
  • Comments:8

github_iconTop GitHub Comments

4reactions
eduardoflorencecommented, May 3, 2019

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 influence

1reaction
vengadesan123commented, Jun 19, 2019

Hi 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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found