-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FAPI element type password_confirm
wipes out all preset attributes from the form element
#6157
Comments
password_confim
type wipes out al preset attributes of the form elementpassword_confirm
wipes out all preset attributes from the form element
PR backdrop/backdrop#4467 ready for review and testing. To test, you can use the example I pasted in the OP. |
Test failure in PHP 5 seems unrelated to the PR. |
It is the test for enabling/disabling modules that fails. I have seen that failure in another PR; it's a random failure which is indeed not related to the PR. |
Here's a tiny module to generate that form (for testing). |
Tried to close/reopen the PR multiple times in order to get the tests to pass green, however there seems to be an issue with tugboat sandboxes at the moment, and I am also getting the "Start and end date ..." know random failure. I'll try again in later. Code looks good to me though 👍🏼 |
@argiepiano many thanks for your PR. 🙏 I've left a question there. |
Tested (with the provided test module) and confirmed that it works. Closed and reopened the PR, and all tests are running and passing (even though we're getting the Tugboat-over-quota message; presume that tests are running on the old Tugboat instance.) LGTM, WFM. |
Thanks @argiepiano, @klonos, @bugfolder, @kiamlaluno, and @indigoxela! I've merged backdrop/backdrop#4467 into 1.x and 1.25.x. |
Description of the bug
When creating a form that uses the Form API type
password_confirm
, all custom#attributes
included in the form element definition are removed/ignored.Steps To Reproduce
To reproduce the behavior:
password_confirm
element AND contains a custom attribute such asdata-important-stuff
:data-important-stuff
attribute is not includedActual behavior
Custom attributes for the element are removed/not rendered.
Expected behavior
The form element should include the custom attributes.
Additional information
PR backdrop/backdrop#4467
The text was updated successfully, but these errors were encountered: