angular / angular/components

Button click event does not fire on first tap/ click in Safari 13

Open
#17,714 1 comment 10 reactions 0 assignees View on GitHub
area: material/button needs investigation P4
Dominant language
TypeScript
Stars
25k
Forks
6.8k
Avg merge
1d 8h
Merged PRs (30d)
91

Description

#### Reproduction

Use StackBlitz to reproduce your issue:
https://stackblitz.com/edit/button-issue-safari13

Resolved by removing `fxLayout="column"`:
https://stackblitz.com/edit/button-issue-safari13-no-fxlayout

Steps to reproduce:
1. Open Stackblitz in Safari 13 on iPad, MacBook or iMac.
2. Scroll down to buttons at the very bottom
3. Click button
4. Watch button be cut off at the bottom of the screen


#### Expected Behavior

Button should fire click event, in case of example Stackblitz a snack bar should appear to show you the click event fired correctly.

#### Actual Behavior

Click event is not fired first time, page jumps, cutting buttons off the bottom. No snack bar is visible in the example Stackblitz.

#### Environment

- Angular: 8.2.14
- CDK/Material: 8.2.3
- Browser(s): Safari 13
- Operating System (e.g. Windows, macOS, Ubuntu): macOS

Contributor guide

Open the contributing guide

Research direction

Start with the linked StackBlitz reproduction in Safari 13 on the listed devices, then compare it with the version where fxLayout="column" is removed. Inspect the button behavior at the bottom of the page and verify that the first tap fires the click event, shows the snack bar, and does not jump or cut off the buttons.

Written by the indexing model from the issue text.

Assessment

Tech stack
angular, typescript
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.