Skip to content

Commit

Permalink
fix(range-selector): remove dataStream
Browse files Browse the repository at this point in the history
  • Loading branch information
Gggpound committed Nov 30, 2024
1 parent d9b1149 commit cc1fdfe
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/sheets-formula-ui/src/views/range-selector/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,9 @@ export function RangeSelector(props: IRangeSelectorProps) {

const handleConfirm = (ranges: IUnitRangeName[]) => {
const text = unitRangesToText(ranges, isSupportAcrossSheet).join(matchToken.COMMA);
if (!text) {
editor?.setDocumentData({ ...editor.getDocumentData(), body: { dataStream: '\r\n', textRuns: [] } });
}
highligh(text);
needEmit();
rangeStringSet(text);
Expand Down

0 comments on commit cc1fdfe

Please sign in to comment.