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

1.8.0 to 1.9.0 "this._fileBrowser.child" is undefined #249

Open
Deep-Patidar opened this issue Nov 30, 2023 · 0 comments
Open

1.8.0 to 1.9.0 "this._fileBrowser.child" is undefined #249

Deep-Patidar opened this issue Nov 30, 2023 · 0 comments

Comments

@Deep-Patidar
Copy link

Hi, I am sort of new in react and trying to update a project, the current version my project has is 1.8.0 and when i tried to update it to 1.9.0 , it started giving my error of undefined value
like i tried to
console.log (this._fileBrowser.child)
it gives value in 1.8.0 but in 1.9.0 it says undefined
I searched everywhere but was not able to find anything to resolve this issue ,
here is some part of my code.
getting error in this line
this.setState({
files: files, hasNext: response.data.has_next, lastPage: page, pageCount: response.data.count
}, () => {
window.removeEventListener('click', this._fileBrowser.child.handleGlobalClick);
window.addEventListener('click', this.handleGlobalClick);
});

this is the part where its getting its value
<FileBrowser
files={this.state.files}
canFilter={false}
ref={el => {
this._fileBrowser = el
}}

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

No branches or pull requests

1 participant