diff --git a/packages/devextreme/js/__internal/core/r1/widget.tsx b/packages/devextreme/js/__internal/core/r1/widget.tsx index d0ab6e1929a6..52b1cf9d11d0 100644 --- a/packages/devextreme/js/__internal/core/r1/widget.tsx +++ b/packages/devextreme/js/__internal/core/r1/widget.tsx @@ -619,11 +619,15 @@ export class Widget extends InfernoWrapperComponent { } activate(): void { - this.state.active = true; + this.setState({ + active: true, + }); } deactivate(): void { - this.state.active = false; + this.setState({ + active: false, + }); } render(): JSX.Element {