Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Search and Reload fail to reload #1743

Closed
azu opened this issue Mar 24, 2018 · 1 comment · Fixed by #1744
Closed

Search and Reload fail to reload #1743

azu opened this issue Mar 24, 2018 · 1 comment · Fixed by #1744
Labels
bug 🐛 Issue concerns a bug.

Comments

@azu
Copy link
Contributor

azu commented Mar 24, 2018

3 -25-2018 00-26-43

Reproduce steps

  1. Input Search keyword
  2. Realod
  3. Throw error
react-dom.min.js:13 Uncaught TypeError: Cannot read property '__reactInternalInstance$uu9ekz18zj' of null
    at Object.u [as getClosestInstanceFromNode] (react-dom.min.js:13)
    at r (react-dom.min.js:14)
    at i (react-dom.min.js:14)
    at r.perform (react-dom.min.js:15)
    at Object.batchedUpdates (react-dom.min.js:14)
    at Object.i [as batchedUpdates] (react-dom.min.js:14)
    at dispatchEvent (react-dom.min.js:14)

Details

When first routing, document.getElementsByClassName('searchInput')[0] is undefined.

https://github.com/BoostIO/Boostnote/blob/80d1ca81acc38926cbd3f421feb7529b0001c339/browser/main/NoteList/index.js#L328-L330

@Rokt33r Rokt33r added the bug 🐛 Issue concerns a bug. label Mar 25, 2018
@Rokt33r
Copy link
Member

Rokt33r commented Mar 25, 2018

Thanks for reporting!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Issue concerns a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants