Skip to content

Commit 256f63d

Browse files
committed
single line editor comp onChange validations
1 parent 4ac2c4a commit 256f63d

File tree

1 file changed

+1
-1
lines changed
  • packages/bruno-app/src/components/SingleLineEditor

1 file changed

+1
-1
lines changed

packages/bruno-app/src/components/SingleLineEditor/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ class SingleLineEditor extends Component {
107107
_onEdit = () => {
108108
if (!this.ignoreChangeEvent && this.editor) {
109109
this.cachedValue = this.editor.getValue();
110-
if (this.props.onChange) {
110+
if (this.props.onChange && (this.props.value !== this.cachedValue)) {
111111
this.props.onChange(this.cachedValue);
112112
}
113113
}

0 commit comments

Comments
 (0)