mirror of
https://github.com/usebruno/bruno.git
synced 2026-06-16 04:11:29 +00:00
single line editor comp onChange validations
This commit is contained in:
@@ -107,7 +107,7 @@ class SingleLineEditor extends Component {
|
||||
_onEdit = () => {
|
||||
if (!this.ignoreChangeEvent && this.editor) {
|
||||
this.cachedValue = this.editor.getValue();
|
||||
if (this.props.onChange) {
|
||||
if (this.props.onChange && (this.props.value !== this.cachedValue)) {
|
||||
this.props.onChange(this.cachedValue);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user