React-jsonschema-form: allow custom widget for oneOf / anyOf select

Created on 13 Mar 2019  路  1Comment  路  Source: rjsf-team/react-jsonschema-form

Prerequisites

Description

When providing a custom select widget, I expected it to be used for the oneOf / anyOf select. The MultiSchemaField component just renders a select instead of looking up the select widget (link).

Steps to Reproduce

  1. Create a schema with a oneOf / anyOf property
  2. Create a custom select widget and pass to the form: <Form widgets={{ SelectWidget: MyCustomSelect }} />
  3. Observe that the select used for the oneOf / anyOf does not render the custom widget.

Expected behavior

I would expect that my custom widget would be rendered instead.

Actual behavior

A select element is used.

Version

1.3.0

enhancement help wanted

Most helpful comment

@epicfaace I'd be happy to take a stab at this.

>All comments

@epicfaace I'd be happy to take a stab at this.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

marinav picture marinav  路  3Comments

mfulton26 picture mfulton26  路  3Comments

j-zimnowoda picture j-zimnowoda  路  3Comments

epicfaace picture epicfaace  路  3Comments

sstarrAtmeta picture sstarrAtmeta  路  3Comments