我正在探索 AG Grid,喜欢我在演示应用程序和我的小演示中看到的内容。我正在与我们的应用程序进行小型 POC 集成,我开始收到来自 React-DOM 的 JavaScript 错误,其中包含“无效的 aria prop”。
react-dom.development.js:61 Warning: Invalid aria prop `aria-description` on <div> tag. For details, see https://reactjs.org/link/invalid-aria-props
at div
at HeaderCellComp (http://localhost:3000/redacted/static/js/bundle.js:110424:25)
at div
at HeaderRowComp (http://localhost:3000/redacted/static/js/bundle.js:110869:36)
at div
at div
at HeaderRowContainerComp (http://localhost:3000/redacted/static/js/bundle.js:111018:20)
at div
at GridHeaderComp (http://localhost:3000/redacted/static/js/bundle.js:110335:20)
at div
at GridBodyComp (http://localhost:3000/redacted/static/js/bundle.js:109884:20)
at TabGuardCompRef (http://localhost:3000/redacted/static/js/bundle.js:111683:24)
at div
at div
at GridComp (http://localhost:3000/redacted/static/js/bundle.js:110118:20)
at div
at AgGridReactUi (http://localhost:3000/redacted/static/js/bundle.js:108709:24)
at AgGridReact (http://localhost:3000/redacted/static/js/bundle.js:108170:43)
Run Code Online (Sandbox Code Playgroud)
我们正在使用 React 17.0.2。
经过研究后,React 17.0.2 无法将“aria-description”识别为有效的 aria 属性,并且仅在 React v18 中修复( …