mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fixed save button enable issue when focusing in and out of numeric input field. Fixes #5137
This commit is contained in:
@@ -367,8 +367,12 @@ define([
|
||||
return;
|
||||
}
|
||||
attrs[k] = v;
|
||||
const attrsDefined = self.origSessAttrs[k] && v;
|
||||
/* If the orig value was null and new one is empty string, then its a "no change" */
|
||||
if (_.isEqual(self.origSessAttrs[k], v) || (self.origSessAttrs[k] === null && v === '')) {
|
||||
/* If the orig value and new value are of different datatype but of same value(numeric) "no change" */
|
||||
if (_.isEqual(self.origSessAttrs[k], v)
|
||||
|| (self.origSessAttrs[k] === null && v === '')
|
||||
|| (attrsDefined ? _.isEqual(self.origSessAttrs[k].toString(), v.toString()) : false)) {
|
||||
delete self.sessAttrs[k];
|
||||
} else {
|
||||
self.sessAttrs[k] = v;
|
||||
|
||||
Reference in New Issue
Block a user