mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Set input controls as read-only instead of disabled will allow tab navigation in the properties tab and also allow screen readers to read it. Fixes #4993
This commit is contained in:
committed by
Akshay Joshi
parent
989aa462f7
commit
0da23b837d
@@ -98,7 +98,7 @@ define('pgadmin.node.extension', [
|
||||
{
|
||||
id: 'name', label: gettext('Name'), first_empty: true,
|
||||
type: 'text', mode: ['properties', 'create', 'edit'],
|
||||
visible: true, url:'avails', disabled: function(m) {
|
||||
visible: true, url:'avails', readonly: function(m) {
|
||||
return !m.isNew();
|
||||
},
|
||||
transform: function(data, cell) {
|
||||
@@ -182,7 +182,7 @@ define('pgadmin.node.extension', [
|
||||
},
|
||||
{
|
||||
id: 'eid', label: gettext('OID'), cell: 'string',
|
||||
type: 'text', disabled: true, mode: ['properties'],
|
||||
type: 'text', mode: ['properties'],
|
||||
},
|
||||
{
|
||||
id: 'owner', label: gettext('Owner'), control: 'node-list-by-name',
|
||||
@@ -231,7 +231,7 @@ define('pgadmin.node.extension', [
|
||||
},
|
||||
{
|
||||
id: 'comment', label: gettext('Comment'), cell: 'string',
|
||||
type: 'multiline', disabled: true,
|
||||
type: 'multiline', readonly: true,
|
||||
},
|
||||
],
|
||||
validate: function() {
|
||||
|
||||
Reference in New Issue
Block a user