mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fix display of zeros in read-only grid editors. Fixes #2138
This commit is contained in:
committed by
Dave Page
parent
2d442da9ff
commit
687a793383
@@ -550,7 +550,13 @@
|
||||
};
|
||||
|
||||
this.loadValue = function (item) {
|
||||
defaultValue = item[args.column.field] || "";
|
||||
var value = item[args.column.field];
|
||||
|
||||
// Check if value is null or undefined
|
||||
if (value === undefined && typeof value === "undefined") {
|
||||
value = ""
|
||||
}
|
||||
defaultValue = value;
|
||||
$input.val(defaultValue);
|
||||
$input[0].defaultValue = defaultValue;
|
||||
$input.select();
|
||||
|
||||
Reference in New Issue
Block a user