How to solve the e.keyCode = = 13 conflict between the search box and the paging input box in antd?

case recurrence: there are paging inputs for both SearchInput and Table in the
component.
coincidentally, both need to trigger events through e.keyCode = 13 . Two events are triggered when you press enter. Is there any ingenious way to avoid it?


two components bind different keyup events. After preventing bubbling, there will be no conflict even if the keyCode is the same.


resolved.
uses the component's built-in keyDown method

Menu