Ensure that cell content being autoselected when editing the cell data. Fixes #5810

This commit is contained in:
Nikhil Mohite 2021-03-04 13:53:23 +05:30 committed by Akshay Joshi
parent 9317fe21b2
commit 778e0cd402
2 changed files with 2 additions and 0 deletions

View File

@ -23,6 +23,7 @@ Bug fixes
| `Issue #5119 <https://redmine.postgresql.org/issues/5119>`_ - Fixed an issue where hanging symlinks in a directory cause select file dialog to break.
| `Issue #5467 <https://redmine.postgresql.org/issues/5467>`_ - Allow underscores in the Windows installation path.
| `Issue #5628 <https://redmine.postgresql.org/issues/5628>`_ - Remove the "launch now" option in the Windows installer, as UAC could cause it to run as an elevated user.
| `Issue #5810 <https://redmine.postgresql.org/issues/5810>`_ - Ensure that cell content being auto selected when editing the cell data.
| `Issue #6018 <https://redmine.postgresql.org/issues/6018>`_ - Fixed encoding issue when database encoding set to SQL_ASCII and name of the column is in ASCII character.
| `Issue #6159 <https://redmine.postgresql.org/issues/6159>`_ - Ensure that the user should be able to kill the session from Dashboard if the user has a 'pg_signal_backend' role.
| `Issue #6227 <https://redmine.postgresql.org/issues/6227>`_ - Ensure PGADMIN_DEFAULT_EMAIL looks sane when initialising a container deployment.

View File

@ -214,6 +214,7 @@ import gettext from 'sources/gettext';
if (!args.column.is_array) {
if (item[args.column.field] === '') {
$input.val(defaultValue = '\'\'');
$input.trigger('select');
} else if (item[args.column.field] === '\'\'') {
$input.val(defaultValue = '\\\'\\\'');
} else if (item[args.column.field] === '""') {