Hi Dan,
Thank you for the suggestion.
Our popover component infrastructure relies on event bubbling to close the popover with outside click detection. We hope to keep it at that without having to add more code.
import onClickOutside from 'react-onclickoutside';
import { Popover } from 'reactstrap';
class CorePopover extends Component {
// This is from `onClickOutside`
handleClickOutside = (e) => {
const { closePopover } = this.props;
console.info("Outside click - closing popover");
closePopover();
}
render(){
return <Popover ... />
}
}
export default onClickOutside(CorePopover);
//
<CorePopover closePopover={() => // Logic to close popover} />
For now, we decided to just hide the time range selection’s rectangle shadow with this snippet while keeping `timeRangeSelectedHandling: Enabled` (by default).
.scheduler_default_shadow {
display: none;
}
Do you think it is a good approach for the time being?