Skip to content

Commit

Permalink
fix: disbale dropdowns while loading data
Browse files Browse the repository at this point in the history
  • Loading branch information
jajjibhai008 committed Oct 8, 2024
1 parent 25db621 commit a1d2d97
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/AdvanceAnalyticsV2/AnalyticsV2Page.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ const AnalyticsV2Page = ({ enterpriseId }) => {
value={startDate || data?.minEnrollmentDate}
min={data?.minEnrollmentDate}
onChange={(e) => setStartDate(e.target.value)}
disabled={isFetching}
/>
</Form.Group>
</div>
Expand All @@ -81,6 +82,7 @@ const AnalyticsV2Page = ({ enterpriseId }) => {
value={endDate || currentDate}
max={currentDate}
onChange={(e) => setEndDate(e.target.value)}
disabled={isFetching}
/>
</Form.Group>
</div>
Expand All @@ -97,6 +99,7 @@ const AnalyticsV2Page = ({ enterpriseId }) => {
as="select"
value={granularity}
onChange={(e) => setGranularity(e.target.value)}
disabled={isFetching}
>
<option value={GRANULARITY.DAILY}>
{intl.formatMessage({
Expand Down Expand Up @@ -142,6 +145,7 @@ const AnalyticsV2Page = ({ enterpriseId }) => {
as="select"
value={calculation}
onChange={(e) => setCalculation(e.target.value)}
disabled={isFetching}
>
<option value={CALCULATION.TOTAL}>
{intl.formatMessage({
Expand Down

0 comments on commit a1d2d97

Please sign in to comment.