neo.mjs 4.3.7 → 4.3.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/core/Util.mjs +4 -0
- package/src/form/field/Text.mjs +2 -2
package/package.json
CHANGED
package/src/core/Util.mjs
CHANGED
package/src/form/field/Text.mjs
CHANGED
@@ -563,8 +563,8 @@ class Text extends Base {
|
|
563
563
|
|
564
564
|
me.getInputEl().value = value;
|
565
565
|
|
566
|
-
if (
|
567
|
-
NeoArray[value && value.toString().length > 0 ? 'add' : 'remove'](cls, 'neo-has-content');
|
566
|
+
if (Neo.isEmpty(value) !== Neo.isEmpty(oldValue)) {
|
567
|
+
NeoArray[value !== null && value.toString().length > 0 ? 'add' : 'remove'](cls, 'neo-has-content');
|
568
568
|
}
|
569
569
|
|
570
570
|
NeoArray[me.originalConfig.value !== value ? 'add' : 'remove'](cls, 'neo-is-dirty');
|