Problem/Motivation

This module's JavaScript only disables <input> elements. This means users can tab into and edit any locked fields that use another type of element, such as <textarea> or <select>.

Steps to reproduce

  1. Configure a text area field on a content type and enable field_lock functionality in the form display settings.
  2. Add or edit a node of that content type.
  3. Use your keyboard to tab into the text area and see that you can modify the field value.

Proposed resolution

Modify the JS that disables form elements to look for any type of element that could be used. <textarea> and <select> come to mind, but there may be others.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

jkaeser created an issue. See original summary.

e0ipso’s picture

e0ipso’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.