angular / angular/components

[Snackbar] Not visible if keyboard is displayed (touch devices)

Aperta
#8,965 5 commenti 2 reazioni 0 assegnatari Vedi su GitHub
area: material/snack-bar P5
Lingua principale
TypeScript
Stelle
25k
Fork
6.8k
Merge medio
1g 8h
PR unite (30g)
91

Descrizione

#### Bug:
Snackbar is hidden when the virtual keyboard is opened.
Tested on iOS 11

#### What is the expected behavior?
Snackbar is placed on the bottom of visible screen, above keyboard

#### What is the current behavior?
Snackbar is placed on behind keyboard, not visible

#### What are the steps to reproduce?
Stackblitz Editor: https://stackblitz.com/edit/angular-material2-issue-brodsj

0. Open https://angular-material2-issue-brodsj.stackblitz.io on a touchscreen device with virtual
keyboard.

Case 1:
1. Tap "Open snackbar" link
2. Keyboard is displayed hidding the snackbar

Case 2:
1. Tap "Open same snackbar" button -> The snackbar is displayed and visible
2. Tap "The placeholder" input field -> Keyboard is displayed hidding the snackbar

#### What is the use-case or motivation for changing an existing behavior?
We want to notify the user from some action AND request immediate input.

#### Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Angular 5+

#### Is there anything else we should know?
Tested on iOS11, Safari

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Iniziare con la riproduzione collegata di StackBlitz Editor e verificare entrambi i casi di Snackbar su un touchscreen iOS 11 Safari con la tastiera virtuale aperta. Tracciare l’implementazione di Angular Material Snackbar a partire dalla riproduzione, quindi confermare che la Snackbar rimanga visibile nella parte inferiore dello schermo visibile, sopra la tastiera.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
angular, typescript
Ambito
frontend
Tipo di issue
Bug
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.