Incorrect typing for Tooltip trigger prop -- should be ActionType | ActionType[] #22010
Closed
1 task done
Labels
help wanted
The suggestion or request has been accepted, we need you to help us by sending a pull request.
Reproduction link
Steps to reproduce
What is expected?
No error for trigger prop
What is actually happening?
This error appears when mousing over the
trigger
prop:The problem is in ant-design/components/tooltip/index.tsx:
The documentation should also be fixed.
The same bug is found in the dependent library rc-tooltip, which I just reported. See react-component/tooltip#209.
The text was updated successfully, but these errors were encountered: