mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
This reverts commit 58b3c31f3e57ad2429e61798238063679e7f668d. Reason for revert: UI rendering hits an infinite tight loop. Reproduces locally with `npm run ctest pause.spec:357` (test hangs) Also observed on dashboard: <img width="1467" alt="image" src="https://user-images.githubusercontent.com/746130/233541521-1f30338d-dd83-405c-bb0d-c890611c33e3.png"> https://github.com/microsoft/playwright/issues/22348
This commit is contained in:
parent
d95268ffc0
commit
a56f97fcef
@ -107,7 +107,7 @@ export const CodeMirrorWrapper: React.FC<SourceProps> = ({
|
||||
React.useEffect(() => {
|
||||
if (!codemirror)
|
||||
return;
|
||||
codemirror.off('change', (codemirror as any)[listenerSymbol]);
|
||||
codemirror.off('change', (codemirror as any).listenerSymbol);
|
||||
(codemirror as any)[listenerSymbol] = undefined;
|
||||
if (onChange) {
|
||||
(codemirror as any)[listenerSymbol] = () => onChange(codemirror.getValue());
|
||||
|
Loading…
x
Reference in New Issue
Block a user