Skip to content

Remove use of Hidden from materialRenderers #2107

@walston

Description

@walston

Describe the bug

the use of @mui/material/Hidden to toggle UI causes issues in test that need to be mocked (see #1795). Additionally Hidden has been deprecated. Mui docs recommend switching the JS implementation (which is used by jsonforms) to a ternary.

https://mui.com/material-ui/migration/v5-component-changes/#hidden

Expected behavior

Testing form contents should be possible

Steps to reproduce the issue

  1. Create a form
  2. Create a test (testing-library/react) around that form
  3. Add an assertion on any form field
  4. Call screen.debug() in the test
  5. Note the jsonforms container is empty

Screenshots

No response

In which browser are you experiencing the issue?

testing-library/react

Which Version of JSON Forms are you using?

v3.0.0

Framework

React

RendererSet

Material

Additional context

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions