mirror of
https://github.com/ansible/awx.git
synced 2026-01-18 13:11:19 -03:30
change CodeEditor onChange back to our debounce implementation
This commit is contained in:
parent
dff3103d96
commit
8dd4e68385
@ -11,6 +11,7 @@ import 'ace-builds/src-noconflict/theme-github';
|
||||
import { withI18n } from '@lingui/react';
|
||||
import { t } from '@lingui/macro';
|
||||
import styled from 'styled-components';
|
||||
import debounce from '../../util/debounce';
|
||||
|
||||
config.set('loadWorkerFromBlob', false);
|
||||
|
||||
@ -139,8 +140,7 @@ function CodeEditor({
|
||||
mode={aceModes[mode] || 'text'}
|
||||
className={`pf-c-form-control ${className}`}
|
||||
theme="github"
|
||||
onChange={onChange}
|
||||
debounceChangePeriod={250}
|
||||
onChange={debounce(onChange, 250)}
|
||||
value={value}
|
||||
onFocus={onFocus}
|
||||
onBlur={onBlur}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user