Commit 0e0cf9e
authored
Fix: Render children in MySelect component to display options (#3998)
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., <option> 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.1 parent 2618cc4 commit 0e0cf9e
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
849 | 849 | | |
850 | 850 | | |
851 | 851 | | |
852 | | - | |
| 852 | + | |
853 | 853 | | |
854 | 854 | | |
855 | 855 | | |
856 | 856 | | |
857 | 857 | | |
| 858 | + | |
858 | 859 | | |
859 | 860 | | |
860 | 861 | | |
| |||
0 commit comments