diff --git a/src/renderers/Remark.tsx b/src/renderers/Remark.tsx index 7736691e4..0029ae1ca 100644 --- a/src/renderers/Remark.tsx +++ b/src/renderers/Remark.tsx @@ -76,6 +76,7 @@ class Remark extends React.Component { classPrefix={ns} classnames={cx} tooltip={filterContents(tooltip || content, data)} + tooltipClassName={tooltip && tooltip.tooltipClassName} placement={(tooltip && tooltip.placement) || placement} rootClose={(tooltip && tooltip.rootClose) || rootClose} trigger={(tooltip && tooltip.trigger) || trigger} diff --git a/src/utils/validations.ts b/src/utils/validations.ts index 9fa96bc92..064ccafbc 100644 --- a/src/utils/validations.ts +++ b/src/utils/validations.ts @@ -259,7 +259,7 @@ export function validate( rules && Object.keys(rules).forEach(ruleName => { - if (!rules[ruleName]) { + if (!isExisty(rules[ruleName]) || isEmpty(rules[ruleName])) { return; } else if (typeof validations[ruleName] !== 'function') { throw new Error('Validation `' + ruleName + '` not exists!');