mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Show the correct indeterminate state when editing new boolean values. Fixes #2218
This commit is contained in:
parent
278c64c361
commit
af499c0c9a
@ -469,7 +469,7 @@
|
|||||||
|
|
||||||
this.loadValue = function (item) {
|
this.loadValue = function (item) {
|
||||||
defaultValue = item[args.column.pos];
|
defaultValue = item[args.column.pos];
|
||||||
if (_.isNull(defaultValue)) {
|
if (_.isNull(defaultValue)||_.isUndefined(defaultValue)) {
|
||||||
$select.prop('indeterminate', true);
|
$select.prop('indeterminate', true);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
@ -754,7 +754,7 @@
|
|||||||
|
|
||||||
this.loadValue = function (item) {
|
this.loadValue = function (item) {
|
||||||
defaultValue = item[args.column.field];
|
defaultValue = item[args.column.field];
|
||||||
if (_.isNull(defaultValue)) {
|
if (_.isNull(defaultValue)||_.isUndefined(defaultValue)) {
|
||||||
$select.prop('indeterminate', true);
|
$select.prop('indeterminate', true);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
Loading…
Reference in New Issue
Block a user