Disable all input elements with JS lock

Created on 11 November 2022, over 1 year ago
Updated 10 April 2024, 3 months ago

Problem/Motivation

The JS lock option adds a 'disabled' prop to a number of form input elements:
$form.find('input, textarea, select').prop('disabled', true).addClass('is-disabled');

However, this does not include all input elements, for example <button> see https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/disabled

Steps to reproduce

Add a <button> element to a form. Lock the form using JS lock

Proposed resolution

Disable all input elements with JS lock

Remaining tasks

  1. Write a patch
  2. Review
  3. Commit

User interface changes

JS lock disables all input elements.

API changes

None.

Data model changes

None.

πŸ“Œ Task
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡³πŸ‡±Netherlands idebr

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

Merge Requests

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.69.0 2024