From 778e0cd4021f08a1c6fc38e9cb4f24f8d2a9545a Mon Sep 17 00:00:00 2001 From: Nikhil Mohite Date: Thu, 4 Mar 2021 13:53:23 +0530 Subject: [PATCH] =?UTF-8?q?Ensure=C2=A0that=20cell=20content=20being=20aut?= =?UTF-8?q?oselected=20when=20editing=20the=20cell=20data.=20Fixes=20#5810?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/en_US/release_notes_5_1.rst | 1 + web/pgadmin/static/js/slickgrid/editors.js | 1 + 2 files changed, 2 insertions(+) diff --git a/docs/en_US/release_notes_5_1.rst b/docs/en_US/release_notes_5_1.rst index 6b7a55676..43a04a189 100644 --- a/docs/en_US/release_notes_5_1.rst +++ b/docs/en_US/release_notes_5_1.rst @@ -23,6 +23,7 @@ Bug fixes | `Issue #5119 `_ - Fixed an issue where hanging symlinks in a directory cause select file dialog to break. | `Issue #5467 `_ - Allow underscores in the Windows installation path. | `Issue #5628 `_ - Remove the "launch now" option in the Windows installer, as UAC could cause it to run as an elevated user. +| `Issue #5810 `_ - Ensure that cell content being auto selected when editing the cell data. | `Issue #6018 `_ - Fixed encoding issue when database encoding set to SQL_ASCII and name of the column is in ASCII character. | `Issue #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 `_ - Ensure PGADMIN_DEFAULT_EMAIL looks sane when initialising a container deployment. diff --git a/web/pgadmin/static/js/slickgrid/editors.js b/web/pgadmin/static/js/slickgrid/editors.js index a69f89b4c..b337d46e4 100644 --- a/web/pgadmin/static/js/slickgrid/editors.js +++ b/web/pgadmin/static/js/slickgrid/editors.js @@ -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] === '""') {