Skip to content

Search and Reload fail to reload #1743

@azu

Description

@azu

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug 🐛Issue concerns a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions