diff --git a/components/_util/wave/index.tsx b/components/_util/wave/index.tsx index d816e426a..81fc6f325 100644 --- a/components/_util/wave/index.tsx +++ b/components/_util/wave/index.tsx @@ -41,21 +41,20 @@ export default defineComponent({ const node = findDOMNode(instance); node.removeEventListener('click', onClick, true); }; - onMounted(() => { watch( () => props.disabled, () => { clear(); nextTick(() => { - const node = findDOMNode(instance); - + const node: HTMLElement = findDOMNode(instance); + node?.removeEventListener('click', onClick, true); if (!node || node.nodeType !== 1 || props.disabled) { return; } // Click handler - const onClick = (e: MouseEvent) => { + onClick = (e: MouseEvent) => { // Fix radio button click twice if ( (e.target as HTMLElement).tagName === 'INPUT' ||