Skip to content

Error after React Dom update #454

Open
@victorpavlenko

Description

@victorpavlenko

I type and after that I try to highlight use mouse or key down/up
Itsh happend after react update

"react": "^16.0.0-rc.3",
"react-dom": "^16.0.0-rc.3",
"react-autosuggest": "^9.3.2",

I check and itemsContainer is empry in Autowhatever

react-dom.development.js:8305 The above error occurred in the component:
in Autowhatever (created by Autosuggest)
in Autosuggest (at base_field.jsx:96)
in SuggestBaseField (at index.jsx:16)
in div (at index.jsx:12)
in LocationTitleBigField (created by ConnectedField)
in ConnectedField (created by Connect(ConnectedField))
in Connect(ConnectedField) (created by Field)
in Field (at index.jsx:21)
in form (at index.jsx:13)
in div (at index.jsx:12)
in div (at index.jsx:29)
in SearchFormContainer (created by Form(SearchFormContainer))
in Form(SearchFormContainer) (created by Connect(Form(SearchFormContainer)))
in Connect(Form(SearchFormContainer)) (created by ReduxForm)
in ReduxForm (created by Connect(ReduxForm))
in Connect(ReduxForm) (at index.jsx:21)
in div (at index.jsx:12)
in div (at index.jsx:7)
in CenteredContent (at index.jsx:11)
in div (at blue.jsx:8)
in BGBlue (at index.jsx:10)
in SearchFormBlock (at index.jsx:20)
in MediaQuery (at desktop.jsx:6)
in DesktopMediaQuery (at index.jsx:28)
in div (at index.jsx:10)
in BaseLayout (at index.jsx:27)
in div (at require_current_user.jsx:7)
in RequireCurrentUser (at index.jsx:26)
in HomeLayout (at index.jsx:28)
in JobsApplicationContainer (created by Connect(JobsApplicationContainer))
in Connect(JobsApplicationContainer) (created by RouterContext)
in div (at index.jsx:17)
in App (at index.jsx:38)
in AppContainer (created by Connect(AppContainer))
in Connect(AppContainer) (created by RouterContext)
in RouterContext (created by Router)
in Router (at index.jsx:39)
in Provider (at index.jsx:38)

Consider adding an error boundary to your tree to customize error handling behavior.
You can learn more about error boundaries at https://fb.me/react-error-boundaries.
logCapturedError$1 @ react-dom.development.js:8305
captureError @ react-dom.development.js:12993
commitAllWork @ react-dom.development.js:12423
workLoop @ react-dom.development.js:12687
callCallback @ react-dom.development.js:1299
invokeGuardedCallbackDev @ react-dom.development.js:1338
invokeGuardedCallback @ react-dom.development.js:1195
performWork @ react-dom.development.js:12800
batchedUpdates @ react-dom.development.js:13244
performFiberBatchedUpdates @ react-dom.development.js:1646
stackBatchedUpdates @ react-dom.development.js:1637
batchedUpdates @ react-dom.development.js:1651
batchedUpdatesWithControlledComponents @ react-dom.development.js:1664
dispatchEvent @ react-dom.development.js:1874
Autowhateve

Autowhatever.js:323 Uncaught TypeError: Cannot read property 'offsetTop' of undefined
at Autowhatever.ensureHighlightedItemIsVisible (Autowhatever.js:323)
at Autowhatever.componentDidUpdate (Autowhatever.js:195)
at commitLifeCycles (react-dom.development.js:11517)
at commitAllLifeCycles (react-dom.development.js:12294)
at HTMLUnknownElement.callCallback (react-dom.development.js:1299)
at Object.invokeGuardedCallbackDev (react-dom.development.js:1338)
at invokeGuardedCallback (react-dom.development.js:1195)
at commitAllWork (react-dom.development.js:12415)
at workLoop (react-dom.development.js:12687)
at HTMLUnknownElement.callCallback (react-dom.development.js:1299)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions