rjsf-team/react-jsonschema-form

Recurring indexed titles in array items for themes other than core

已关闭

#4,011 创建于 2023年12月23日

 (2 条评论) (0 个反应) (1 位负责人)TypeScript (2,136 个派生)batch import
bughelp wanted

仓库指标

星标
 (13,175 个星标)
PR 合并指标
 (平均合并 3天 17小时) (30 天内合并 32 个 PR)

描述

Prerequisites

What theme are you using?

mui

Version

5.15.1

Current Behavior

The indexed titles which are handed down from the array property to its children are recurring for non core themes. For example, in this playground, the title/label array-1 is being used at two places.

Expected Behavior

The indexed titles should not repeat, similar to how the core theme works.

Steps To Reproduce

  1. Head to the playground example
  2. Notice that array-1 title/label is being repeated for both the first and second index

Environment

- Chrome: 120.0.6099.71

Anything else?

This is happening after a recent https://github.com/rjsf-team/react-jsonschema-form/pull/4002 PR. The indexed titles were taken care of for the core theme and are required for other themes as well.

贡献者指南