Skip to content

Commit

Permalink
Issue #2251: Adjusted javascript to include readonly attribute when h…
Browse files Browse the repository at this point in the history
…andling disabled fields.
  • Loading branch information
stefanhaerter committed Feb 6, 2024
1 parent aa2c348 commit 398f1b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion var/httpd/htdocs/js/Core.UI.InputFields.js
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ Core.UI.InputFields = (function (TargetNS) {

// Handle form <select> elements that are disabled and elements that were
// disabled with Core.Form.DisableForm();
if ($SelectObj.attr('disabled') || $SearchObj.data('form-disabled')) {
if ($SelectObj.is(':disabled,[readonly]') || $SearchObj.data('form-disabled')) {
$SearchObj.attr('disabled', 'disabled');
// Make background grey and elements white.
$SearchObj.attr('readonly', true);
Expand Down

0 comments on commit 398f1b5

Please sign in to comment.