Commit 23d202a
authored
Fix 4938 to support slotProps and InputProps with endAdornment already specified (#4940)
Fixes #4938 by updating the `@rjsf/mui` `BaseInputTemplate` to properly handle existing `endAdornment`s when the `allowClearTextInputs` flag is true
- In `@rjsf/mui`, updated `BaseInputTemplate` to properly handle `slotProps` and `InputProps` with existing `endAdornment`s when the `allowClearTextInputs` flag is true
- In `snapshot-tests` added tests for `allowClearTextInputs` with data as well as readonly to test the feature
- Updated the snapshots accordingly
- Updated the `uiSchema.md` to add documetation for `allowClearTextInputs`
- Updated `CHANGELOG.md` accordingly1 parent 8b7a58c commit 23d202a
15 files changed
Lines changed: 3646 additions & 970 deletions
File tree
- packages
- antd/test/__snapshots__
- chakra-ui/test/__snapshots__
- core/test/__snapshots__
- daisyui/test/__snapshots__
- docs/docs/api-reference
- fluentui-rc/test/__snapshots__
- mantine/test/__snapshots__
- mui
- src/BaseInputTemplate
- test/__snapshots__
- primereact/test/__snapshots__
- react-bootstrap/test/__snapshots__
- semantic-ui/test/__snapshots__
- shadcn/test/__snapshots__
- snapshot-tests/src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
19 | 30 | | |
20 | 31 | | |
21 | 32 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16567 | 16567 | | |
16568 | 16568 | | |
16569 | 16569 | | |
16570 | | - | |
| 16570 | + | |
| 16571 | + | |
| 16572 | + | |
| 16573 | + | |
| 16574 | + | |
| 16575 | + | |
| 16576 | + | |
| 16577 | + | |
| 16578 | + | |
| 16579 | + | |
| 16580 | + | |
| 16581 | + | |
| 16582 | + | |
| 16583 | + | |
| 16584 | + | |
| 16585 | + | |
| 16586 | + | |
| 16587 | + | |
| 16588 | + | |
| 16589 | + | |
| 16590 | + | |
| 16591 | + | |
| 16592 | + | |
| 16593 | + | |
| 16594 | + | |
| 16595 | + | |
| 16596 | + | |
| 16597 | + | |
| 16598 | + | |
| 16599 | + | |
| 16600 | + | |
| 16601 | + | |
| 16602 | + | |
| 16603 | + | |
| 16604 | + | |
| 16605 | + | |
| 16606 | + | |
| 16607 | + | |
| 16608 | + | |
| 16609 | + | |
| 16610 | + | |
| 16611 | + | |
| 16612 | + | |
| 16613 | + | |
| 16614 | + | |
| 16615 | + | |
| 16616 | + | |
| 16617 | + | |
| 16618 | + | |
| 16619 | + | |
| 16620 | + | |
| 16621 | + | |
| 16622 | + | |
| 16623 | + | |
| 16624 | + | |
| 16625 | + | |
| 16626 | + | |
| 16627 | + | |
| 16628 | + | |
| 16629 | + | |
| 16630 | + | |
| 16631 | + | |
| 16632 | + | |
| 16633 | + | |
| 16634 | + | |
| 16635 | + | |
| 16636 | + | |
| 16637 | + | |
| 16638 | + | |
| 16639 | + | |
| 16640 | + | |
| 16641 | + | |
| 16642 | + | |
| 16643 | + | |
| 16644 | + | |
| 16645 | + | |
| 16646 | + | |
| 16647 | + | |
| 16648 | + | |
| 16649 | + | |
| 16650 | + | |
| 16651 | + | |
| 16652 | + | |
| 16653 | + | |
| 16654 | + | |
| 16655 | + | |
| 16656 | + | |
| 16657 | + | |
| 16658 | + | |
| 16659 | + | |
| 16660 | + | |
| 16661 | + | |
| 16662 | + | |
| 16663 | + | |
| 16664 | + | |
| 16665 | + | |
| 16666 | + | |
| 16667 | + | |
| 16668 | + | |
| 16669 | + | |
| 16670 | + | |
| 16671 | + | |
| 16672 | + | |
| 16673 | + | |
| 16674 | + | |
| 16675 | + | |
| 16676 | + | |
| 16677 | + | |
| 16678 | + | |
| 16679 | + | |
| 16680 | + | |
| 16681 | + | |
| 16682 | + | |
| 16683 | + | |
| 16684 | + | |
| 16685 | + | |
| 16686 | + | |
| 16687 | + | |
| 16688 | + | |
| 16689 | + | |
| 16690 | + | |
| 16691 | + | |
| 16692 | + | |
| 16693 | + | |
| 16694 | + | |
| 16695 | + | |
| 16696 | + | |
| 16697 | + | |
| 16698 | + | |
| 16699 | + | |
| 16700 | + | |
| 16701 | + | |
| 16702 | + | |
| 16703 | + | |
| 16704 | + | |
| 16705 | + | |
| 16706 | + | |
| 16707 | + | |
| 16708 | + | |
| 16709 | + | |
| 16710 | + | |
| 16711 | + | |
| 16712 | + | |
| 16713 | + | |
| 16714 | + | |
| 16715 | + | |
| 16716 | + | |
| 16717 | + | |
| 16718 | + | |
16571 | 16719 | | |
16572 | 16720 | | |
16573 | 16721 | | |
| |||
0 commit comments