public inbox for [email protected]  
help / color / mirror / Atom feed
From: Nikhil Mohite <[email protected]>
To: pgadmin-hackers <[email protected]>
Subject: [pgAdmin][RM-5810]: In-table editing on certain cell values does not result in cell content being autoselected.
Date: Thu, 4 Mar 2021 10:29:20 +0530
Message-ID: <CAOBg0AMu1kZqEMgaNUTm4rKiWv8Zj959yaL_z90r_my_gOEgcQ@mail.gmail.com> (raw)

Hi Hackers,

Please find the attached patch for RM-5810
<https://redmine.postgresql.org/issues/5810;: In-table editing on certain
cell values does not result in cell content being autoselected.

-- 
*Thanks & Regards,*
*Nikhil Mohite*
*Software Engineer.*
*EDB Postgres* <https://www.enterprisedb.com/;
*Mob.No: +91-7798364578.*


Attachments:

  [application/octet-stream] RM-5810.patch (620B, 3-RM-5810.patch)
  download | inline diff:
diff --git a/web/pgadmin/static/js/slickgrid/editors.js b/web/pgadmin/static/js/slickgrid/editors.js
index a69f89b4..b337d46e 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] === '""') {


view thread (2+ messages)  latest in thread

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected]
  Subject: Re: [pgAdmin][RM-5810]: In-table editing on certain cell values does not result in cell content being autoselected.
  In-Reply-To: <CAOBg0AMu1kZqEMgaNUTm4rKiWv8Zj959yaL_z90r_my_gOEgcQ@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox