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