aforemny / aforemny/material-components-web-elm

JS Error opening a modal drawer

Aperta
#152 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Elm
Stelle
93
Fork
20
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

Version 8.0.1

When I click the button that sets `config.drawerOpen` to true, the below error occurs

JS Console
![image](https://user-images.githubusercontent.com/196800/138574308-4cc0a2a8-7193-49fa-96d3-d17781420f95.png)

Ref: https://github.com/aforemny/material-components-web/blob/edcc5c48e7b549224a81709cca2896fe01c76618/packages/mdc-drawer/component.ts#L171

Usage
![image](https://user-images.githubusercontent.com/196800/138574323-aee7042e-c895-4edb-bb31-f36d95a3a4a2.png)

Seems there's a Non-Null Assertion where we should really be handling the null|undefined case.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.