diff --git a/packages/devextreme/js/__internal/core/r1/widget.tsx b/packages/devextreme/js/__internal/core/r1/widget.tsx index 916c2be3df47..19483058fa83 100644 --- a/packages/devextreme/js/__internal/core/r1/widget.tsx +++ b/packages/devextreme/js/__internal/core/r1/widget.tsx @@ -540,24 +540,15 @@ export class Widget extends InfernoWrapperComponent { } getAttributesCore(props: Record): Record { - const { - height, - width, - activeStateEnabled, - hoverStateEnabled, - focusStateEnabled, - _feedbackHideTimeout, - _feedbackShowTimeout, - addWidgetClass, - rootElementRef, - rtlEnabled, - aria, - hint, - cssText, - classes, - name, - ...result - } = props; + const result = { ...props }; + + [ + '_feedbackHideTimeout', '_feedbackShowTimeout', 'accessKey', 'activeStateEnabled', 'activeStateUnit', 'addWidgetClass', 'aria', 'children', 'className', 'classes', 'cssText', 'disabled', 'focusStateEnabled', 'height', 'hint', 'hoverStateEnabled', 'name', 'onActive', 'onClick', 'onDimensionChanged', 'onFocusIn', 'onFocusOut', 'onHoverEnd', 'onHoverStart', 'onInactive', 'onKeyDown', 'onRootElementRendered', 'onVisibilityChange', 'rootElementRef', 'rtlEnabled', 'tabIndex', 'visible', 'width', + ].forEach((exclude) => { + // eslint-disable-next-line @typescript-eslint/no-dynamic-delete + delete result[exclude]; + }); + return result; }