Skip to content

Commit

Permalink
fix: 修复 diffEditor 无限 onChange 问题
Browse files Browse the repository at this point in the history
  • Loading branch information
2betop committed Dec 24, 2024
1 parent 1836fe4 commit f582f2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/amis-ui/src/components/DiffEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export default class DiffEditor extends React.Component<DiffEditorProps> {
handleModifiedEditorChange(e: any) {
const {onChange} = this.props;
const value = this.modifiedEditor.getModel().getValue();
onChange?.(value, e);
value !== this.props.value && onChange?.(value, e);
}

@autobind
Expand Down

0 comments on commit f582f2a

Please sign in to comment.