I'm using the popover component with a text input component inside. Any time the user hits the spacebar, the popover closes.
All I really need is to stop Antd from calling onVisibleChange when the user hits the spacebar. I've tried using event.stopPropogation() and event.preventDefault on the input, but no luck. I have a bunch of dropdowns, selects, etc inside of the popover, so creating my own popover seems like it would be pretty tough to handle the handleOutsideClick functionality.
My Popover looks like:
<Popover
content={content}
title={null}
trigger="click"
getPopupContainer={(triggerNode) => triggerNode}
onVisibleChange={onChange}
visible={showMenu}
>
TLDR: I just want to stop the popover from closing when the spacebar is hit. But I also want to retain it closing if you click outside of it.