Skip to content

highlight not updated when the property is changed #43

@yonghah

Description

@yonghah

Hi,
It seems that changing highlight property doesn't update the component.
I have a react code like below to scroll AND highlight to the specific line.

const [lineNumber, setLineNumber] = useState(1);
<LazyLog
  text={mlirData?.content}
  scrollToLine={lineNumber}
  highlight={lineNumber}
/>

When the lineNumber is updated, LazyLog is scrolled to the line number as expected. But the highlight is not updated.
Do you have any idea?

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions