angular / angular/components

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

オープン
#17,714 コメント 1 件 リアクション 10 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

area: material/button needs investigation P4
主要言語
TypeScript
スター
25k
フォーク
6.8k
平均マージ
1日 8時間
マージ済み PR(30日)
91

説明

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

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

まず、記載されているデバイスの Safari 13 で、リンクされている StackBlitz の再現を開始し、次に fxLayout="column" を削除したバージョンと比較します。ページ下部のボタンの動作を調べ、最初のタップで click イベントが発火して snack bar が表示され、ボタンがジャンプしたり切れたりしないことを確認します。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
angular, typescript
領域
frontend
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。