Skip to content

The original example did not render the **children** prop, which resulted in the **select** element not displaying the options passed as children. This PR updates the **MySelect** component to properly handle the **children** prop and render the options inside the dropdown. #44

@bhcpwn6swk-creator

Description

@bhcpwn6swk-creator

The original example did not render the children prop, which resulted in the select element not displaying the options passed as children. This PR updates the MySelect component to properly handle the children prop and render the options inside the dropdown.

Changes Made

Updated MySelect component to include the children prop inside the select element.
This ensures that the options passed as children (e.g., tags) are correctly displayed in the dropdown list.

Issue Addressed

Incorrect example in the documentation where options passed to the MySelect component were not being rendered.

Testing

Verified that the options now render correctly in the MySelect component by testing it with the provided example from the tutorial.

Additional Notes

This PR only fixes the example in the docs and does not introduce any breaking changes.

Originalmente postado por @rohitKumar38344 em jaredpalmer/formik#3998

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions