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

Warning: Received false for a non-boolean attribute error. #152

Open
matthewstick opened this issue Jan 21, 2025 · 0 comments
Open

Warning: Received false for a non-boolean attribute error. #152

matthewstick opened this issue Jan 21, 2025 · 0 comments

Comments

@matthewstick
Copy link

I get this warning in 2.4.0. How can I make it go away? I tried the "errror" as string suggestions put it doesnt work

<FileUploader
                maxSize="1000"
                handleChange={handleChange}
                name="file"
                types={fileTypes}
            />

or more reduced:

<FileUploader
                name="file"
            />
app-index.js:33 Warning: Received `false` for a non-boolean attribute `error`.

If you want to write it to the DOM, pass a string instead: error="false" or error={value.toString()}.

If you used to conditionally omit it with error={condition && value}, pass error={condition ? value : undefined} instead.
    at div
    at O (webpack-internal:///(app-pages-browser)/./node_modules/styled-components/dist/styled-components.browser.esm.js:33:23554)
    at label
    at O (webpack-internal:///(app-pages-browser)/./node_modules/styled-components/dist/styled-components.browser.esm.js:33:23554)
    at E (webpack-internal:///(app-pages-browser)/./node_modules/react-drag-drop-files/dist/react-drag-drop-files.esm.js:23:6212)
    at div
    at DragDrop (webpack-internal:///(app-pages-browser)/./src/app/components/DragDrop.js:21:11)
    at div
    at div
    at div
    at div
   etc....
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