fix(ui) - date picker
This commit is contained in:
parent
7474db30fd
commit
7f048731d2
2 changed files with 2 additions and 2 deletions
|
|
@ -40,6 +40,7 @@ function SelectDateRange(props: Props) {
|
|||
|
||||
const isCustomRange = period.rangeName === CUSTOM_RANGE;
|
||||
const customRange = isCustomRange ? period.rangeFormatted() : '';
|
||||
|
||||
return (
|
||||
<div className="relative">
|
||||
<Select
|
||||
|
|
@ -63,7 +64,7 @@ function SelectDateRange(props: Props) {
|
|||
{isCustom && (
|
||||
<OutsideClickDetectingDiv
|
||||
onClickOutside={(e: any) => {
|
||||
if (e.target.parentElement.parentElement.classList.contains('rc-time-picker-panel-select')) {
|
||||
if (e.target.parentElement.parentElement.classList.contains('rc-time-picker-panel-select') || e.target.parentElement.parentElement.classList[0].includes('-menu')) {
|
||||
return false;
|
||||
}
|
||||
setIsCustom(false);
|
||||
|
|
|
|||
|
|
@ -2,7 +2,6 @@ import './styles/index.scss';
|
|||
import React from 'react';
|
||||
import { createRoot } from 'react-dom/client';
|
||||
import './init';
|
||||
import { render } from 'react-dom';
|
||||
import { Provider } from 'react-redux';
|
||||
import store from './store';
|
||||
import Router from './Router';
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue