Skip to content

Commit f144fab

Browse files
authored
Merge branch 'next' into feature/prepareFinalNext-CMEM-6943
2 parents e512cc9 + b1d446a commit f144fab

3 files changed

Lines changed: 5 additions & 4 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ This is a major release, and it might be not compatible with your current usage
7777

7878
- `<Modal />`:
7979
- Add 'nopan', 'nowheel' and 'nodrag' classes to Modal's overlay classes in order to always prevent react-flow to react to drag and pan actions in modals.
80+
- `<CodeAutocompleteField />`:
81+
- In multiline mode, validation errors might be highlighted incorrectly (relative line offset added).
8082

8183
### Changed
8284

src/components/AutoSuggestion/AutoSuggestion.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -302,12 +302,11 @@ export const CodeAutocompleteField = ({
302302
};
303303
if (parseError) {
304304
const { message, start, end } = parseError;
305-
const { toOffset, fromOffset } = getOffsetRange(cm, start, end);
306305
clearCurrentErrorMarker();
307306
const { from, to } = markText({
308307
view: cm,
309-
from: fromOffset,
310-
to: toOffset,
308+
from: start,
309+
to: end,
311310
className: `${eccgui}-autosuggestion__text--highlighted-error`,
312311
title: message,
313312
});

src/extensions/react-flow/edges/EdgeDefaultV12.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ export const EdgeDefaultV12 = memo(
104104
: undefined,
105105
markerEnd:
106106
arrowDirection === "normal" || arrowDirection === "bidirectional"
107-
? `url(#react-flow__marker--${appearance}${intent ? `-${intent}` : "-none"}`
107+
? `url(#react-flow__marker--${appearance}${intent ? `-${intent}` : "-none"})`
108108
: undefined,
109109
}
110110
: {};

0 commit comments

Comments
 (0)