Password confirm field type should have support for additional attributes (e.g. placeholder, etc)

Created on 27 August 2012, about 12 years ago
Updated 26 July 2024, about 1 month ago

Basically I assigned a 'placeholder' attribute to the password key via a form_alter. But the form_process_password_confirm simply overwrites any attributes by the following:

'#attributes' => array('class' => array('password-field')),

One way around this might be to simply do the following:
'#attributes' => $element['#attributes'] + array('class' => array('password-field')),

But we may want to provide a more robust way of checking so we don't overwrite any classes as well. Here is a very quick patch that obviously is just a starting point for the discussion.

✨ Feature request
Status

Closed: duplicate

Version

11.0 πŸ”₯

Component
FormΒ  β†’

Last updated 1 minute ago

Created by

πŸ‡ΊπŸ‡ΈUnited States rickmanelius

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024