Merge branch 'master' into Add-action-list-Chinese-translation

This commit is contained in:
wangyiyi2056
2023-12-07 09:19:46 +08:00
committed by GitHub
8 changed files with 20 additions and 18 deletions

View File

@@ -56,6 +56,9 @@ RED.validators = {
if (options.allowBlank && v === '') {
return true
}
if (options.allowUndefined && v === undefined) {
return true
}
const result = RED.utils.validateTypedProperty(v, ptype, opt)
if (result === true || opt) {
// Valid, or opt provided - return result as-is