Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ This is a major release, and it might be not compatible with your current usage

- `<Modal />`:
- 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.
- `<CodeAutocompleteField />`:
- In multiline mode, validation errors might be highlighted incorrectly (relative line offset added).

### Changed

Expand Down
5 changes: 2 additions & 3 deletions src/components/AutoSuggestion/AutoSuggestion.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -317,12 +317,11 @@ const AutoSuggestion = ({
};
if (parseError) {
const { message, start, end } = parseError;
const { toOffset, fromOffset } = getOffsetRange(cm, start, end);
clearCurrentErrorMarker();
const { from, to } = markText({
view: cm,
from: fromOffset,
to: toOffset,
from: start,
to: end,
className: `${eccgui}-autosuggestion__text--highlighted-error`,
title: message,
});
Expand Down