Disabling file field.

Created on 8 June 2021, over 3 years ago
Updated 13 September 2024, 3 months ago

Problem/Motivation

When form element is disabled, you are still having possibility to drag the elements and you are shown remove buttons.

Steps to reproduce

Create a node type. Add a file filed with multiple values. Use hook_form_alter to add "#disable = true" to the field. Look at the edit form.

Proposed resolution

Remove edit bits when field is disabled.

🐛 Bug report
Status

Closed: won't fix

Version

3.0

Component

Code

Created by

🇪🇪Estonia ram4nd Tallinn

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