petyosi / react-virtuoso

The most powerful virtual list component for React
https://virtuoso.dev
MIT License
5.25k stars 301 forks source link

[BUG] `VirtuosoGrid`: `React does not recognize the 'logLevel' prop on a DOM element.` #891

Closed psychedelicious closed 1 year ago

psychedelicious commented 1 year ago

Describe the bug The logLevel prop does not work on VirtuosoGrid - there is a console error, and there are no additional messages in the console.

Warning: React does not recognize the `logLevel` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `loglevel` instead. If you accidentally passed it from a parent component, remove it from the DOM element.
    at div
    at VirtuosoScroller (https://5slkdt.csb.app/node_modules/react-virtuoso/dist/index.mjs:2734:79)
    at GridRoot2 (https://5slkdt.csb.app/node_modules/react-virtuoso/dist/index.mjs:3285:65)
    at eval (https://5slkdt.csb.app/node_modules/react-virtuoso/dist/index.mjs:423:22)
    at App (https://5slkdt.csb.app/App.js:38:43)

To Reproduce Steps to reproduce the behavior:

  1. Go to https://codesandbox.io/s/sandpack-project-forked-4oyszv?file=/App.js
  2. Look in the console

Expected behavior logLevel works

Screenshots image

Desktop (please complete the following information):

Additional context The Virtuoso works with logLevel. Happy to have a look at this.

petyosi commented 1 year ago

Yeah, that's easy to fix. I did not wire that property up correctly.

github-actions[bot] commented 1 year ago

:tada: This issue has been resolved in version 4.3.6 :tada:

The release is available on:

Your semantic-release bot :package::rocket: