From e71cbad60e3c7be20ead3381b49800cda9c383f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=95=D0=B2=D0=B3=D0=B5=D0=BD=D0=B8=D0=B9=20=D0=9F=D1=8F?= =?UTF-8?q?=D1=82=D0=BA=D0=BE=D0=B2?= <48599460+JackUait@users.noreply.github.com> Date: Fri, 25 Aug 2023 13:51:22 +0300 Subject: [PATCH] fix(ComboBox): remove flushSync console error for React18 (#3253) --- .../react-ui/internal/CustomComboBox/CustomComboBox.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/react-ui/internal/CustomComboBox/CustomComboBox.tsx b/packages/react-ui/internal/CustomComboBox/CustomComboBox.tsx index e1f1917f30..0a19ea5e71 100644 --- a/packages/react-ui/internal/CustomComboBox/CustomComboBox.tsx +++ b/packages/react-ui/internal/CustomComboBox/CustomComboBox.tsx @@ -309,7 +309,7 @@ export class CustomComboBox extends React.PureComponent extends React.PureComponent extends React.PureComponent) => { + private dispatch = (action: CustomComboBoxAction, sync = true) => { const updateState = (action: CustomComboBoxAction) => { let effects: Array>; let nextState: Pick, never>; @@ -348,7 +348,7 @@ export class CustomComboBox extends React.PureComponent updateState(action)); } else { updateState(action);