aforemny / aforemny/material-components-web-elm

JS Error opening a modal drawer

Open
#152 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Elm
Stars
93
Forks
20
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.