cloudflare / cloudflare/react-gateway

refs is null

Open
#5 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
576
Forks
70
PR merge metrics
No merged PRs in 30d

Description

I'm not sure if this is related to #4 but it seems React has a problem accessing refs when using a Gateway (i think this occurs on unmount - no error appears until after I've loaded then unloaded the view which adds the modal). Here's my code:

https://gist.github.com/MarkMurphy/781e49b0d5a1e6b8218d

This component is based on the react bootstrap modal example found here: https://github.com/facebook/react/blob/master/examples/jquery-bootstrap/js/app.js

The specific error message is:

```
Uncaught TypeError: Cannot read property 'refs' of null
```

Full stacktrace is [here](https://gist.github.com/MarkMurphy/ac41eda89604553a05e9)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.