Skip to content

Commit

Permalink
fix: #2423-1
Browse files Browse the repository at this point in the history
  • Loading branch information
Jocs committed Sep 11, 2024
1 parent 4f6fdc6 commit 52fde2a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
8 changes: 4 additions & 4 deletions packages/sheets-ui/src/views/defined-name/DefinedName.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@
* limitations under the License.
*/

import React, { useEffect } from 'react';
import { useDependency } from '@univerjs/core';

import { Dropdown, Input } from '@univerjs/design';
import { MoreDownSingle } from '@univerjs/icons';
import { useDependency } from '@univerjs/core';
import { IDefinedNamesService } from '@univerjs/engine-formula';
import { MoreDownSingle } from '@univerjs/icons';
import clsx from 'clsx';
import styles from './index.module.less';
import React, { useEffect } from 'react';
import { DefinedNameOverlay } from './DefinedNameOverlay';
import styles from './index.module.less';

export function DefinedName({ disable }: { disable: boolean }) {
const [rangeString, setRangeString] = React.useState('');
Expand Down
12 changes: 7 additions & 5 deletions packages/ui/src/components/range-selector/RangeSelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,17 @@
* limitations under the License.
*/

import type { IUnitRangeWithName, Nullable, Workbook } from '@univerjs/core';
import { IUniverInstanceService, LocaleService, UniverInstanceType, useDependency } from '@univerjs/core';
import { Button, Dialog, Input, Tooltip } from '@univerjs/design';
import { CloseSingle, DeleteSingle, IncreaseSingle, SelectRangeSingle } from '@univerjs/icons';
import React, { useEffect, useRef, useState } from 'react';

import { getRangeWithRefsString, isReferenceStringWithEffectiveColumn, serializeRange, serializeRangeWithSheet, serializeRangeWithSpreadsheet } from '@univerjs/engine-formula';
import { CloseSingle, DeleteSingle, IncreaseSingle, SelectRangeSingle } from '@univerjs/icons';
import clsx from 'clsx';
import { TextEditor } from '../editor/TextEditor';

import React, { useEffect, useRef, useState } from 'react';
import type { IUnitRangeWithName, Nullable, Workbook } from '@univerjs/core';
import { IEditorService } from '../../services/editor/editor.service';
import { IRangeSelectorService } from '../../services/range-selector/range-selector.service';
import { TextEditor } from '../editor/TextEditor';
import styles from './index.module.less';

export interface IRangeSelectorProps {
Expand Down Expand Up @@ -238,6 +238,8 @@ export function RangeSelector(props: IRangeSelectorProps) {

editorService.setValue(result, id);

handleTextValueChange(result);

handleCloseModal();
}

Expand Down

0 comments on commit 52fde2a

Please sign in to comment.