Skip to content

Commit

Permalink
fix rest attr in widget
Browse files Browse the repository at this point in the history
  • Loading branch information
pomahtri committed Oct 24, 2024
1 parent 59907d0 commit 1696139
Showing 1 changed file with 9 additions and 18 deletions.
27 changes: 9 additions & 18 deletions packages/devextreme/js/__internal/core/r1/widget.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -540,24 +540,15 @@ export class Widget extends InfernoWrapperComponent<WidgetProps> {
}

getAttributesCore(props: Record<string, string>): Record<string, string> {
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;
}

Expand Down

0 comments on commit 1696139

Please sign in to comment.