Skip to content

Commit

Permalink
Scroll to top on callout creation. (#7333)
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbykolev authored Dec 16, 2024
1 parent 88e457f commit 2dea9de
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ import { findDefaultTagset } from '@/domain/common/tags/utils';
import ImportTemplatesDialog from '@/domain/templates/components/Dialogs/ImportTemplateDialog/ImportTemplatesDialog';
import TipsAndUpdatesOutlinedIcon from '@mui/icons-material/TipsAndUpdatesOutlined';
import SystemUpdateAltIcon from '@mui/icons-material/SystemUpdateAlt';
import scrollToTop from '@/core/ui/utils/scrollToTop';

export type CalloutCreationDialogFields = {
description?: string;
Expand Down Expand Up @@ -150,6 +151,7 @@ const CalloutCreationDialog = ({
};

result = await onCreateCallout(newCallout);
scrollToTop();
} catch (ex) {
// eslint-disable-next-line no-console
console.error(ex);
Expand Down

0 comments on commit 2dea9de

Please sign in to comment.