Commit 4420274
[Form] Document the hidden placeholder of required ChoiceType fields
Since 8.1, placeholder_attr defaults to ["hidden" => true] on required
collapsed ChoiceType fields, but the change shipped without CHANGELOG or
UPGRADE entries and no layout test asserts the attribute. Add both notes
and pin the rendering at HTML level: hidden on the placeholder option of
required fields, absent for non-required fields and for placeholders
injected via view variables (the default only applies to the placeholder
option). The required-field assertions detect the installed symfony/form
behavior so the bridge test suite keeps passing against 7.4/8.0 in the
lowest-dependencies jobs.1 parent 4f44742 commit 4420274
3 files changed
Lines changed: 31 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
775 | 775 | | |
776 | 776 | | |
777 | 777 | | |
| 778 | + | |
778 | 779 | | |
779 | 780 | | |
780 | 781 | | |
781 | 782 | | |
782 | 783 | | |
783 | 784 | | |
784 | | - | |
| 785 | + | |
785 | 786 | | |
786 | 787 | | |
787 | 788 | | |
| |||
799 | 800 | | |
800 | 801 | | |
801 | 802 | | |
| 803 | + | |
| 804 | + | |
802 | 805 | | |
803 | 806 | | |
804 | 807 | | |
805 | 808 | | |
806 | 809 | | |
807 | 810 | | |
808 | | - | |
| 811 | + | |
809 | 812 | | |
810 | 813 | | |
811 | 814 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
783 | 783 | | |
784 | 784 | | |
785 | 785 | | |
| 786 | + | |
786 | 787 | | |
787 | 788 | | |
788 | 789 | | |
789 | 790 | | |
790 | 791 | | |
791 | 792 | | |
792 | | - | |
| 793 | + | |
793 | 794 | | |
794 | 795 | | |
795 | 796 | | |
| |||
807 | 808 | | |
808 | 809 | | |
809 | 810 | | |
| 811 | + | |
| 812 | + | |
810 | 813 | | |
811 | 814 | | |
812 | 815 | | |
813 | 816 | | |
814 | 817 | | |
815 | 818 | | |
816 | | - | |
| 819 | + | |
817 | 820 | | |
818 | 821 | | |
819 | 822 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
66 | 81 | | |
67 | 82 | | |
68 | 83 | | |
| |||
820 | 835 | | |
821 | 836 | | |
822 | 837 | | |
823 | | - | |
| 838 | + | |
824 | 839 | | |
825 | 840 | | |
826 | 841 | | |
| |||
842 | 857 | | |
843 | 858 | | |
844 | 859 | | |
| 860 | + | |
845 | 861 | | |
846 | 862 | | |
847 | 863 | | |
848 | 864 | | |
849 | 865 | | |
850 | | - | |
| 866 | + | |
851 | 867 | | |
852 | 868 | | |
853 | 869 | | |
| |||
868 | 884 | | |
869 | 885 | | |
870 | 886 | | |
| 887 | + | |
| 888 | + | |
871 | 889 | | |
872 | 890 | | |
873 | 891 | | |
874 | 892 | | |
875 | 893 | | |
876 | | - | |
| 894 | + | |
877 | 895 | | |
878 | 896 | | |
879 | 897 | | |
| |||
0 commit comments