fix: cascader trigger support custom component, close #5677

pull/5682/head
tangjinzhou 2022-06-07 20:09:09 +08:00
parent e86a833b15
commit 361e818bcc
1 changed files with 2 additions and 1 deletions

View File

@ -390,7 +390,8 @@ export default defineComponent({
getRootDomNode() {
const { getTriggerDOMNode } = this.$props;
if (getTriggerDOMNode) {
return getTriggerDOMNode(this.triggerRef);
const domNode = findDOMNode(this.triggerRef);
return findDOMNode(getTriggerDOMNode(domNode));
}
try {