From e4e8f49ac64ff56e4c1db83116354d2e39539854 Mon Sep 17 00:00:00 2001 From: melloware Date: Tue, 9 Jan 2024 14:41:51 -0500 Subject: [PATCH] Fix #5623 - Otherprops not working for InputSwitch --- components/lib/inputswitch/InputSwitch.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/components/lib/inputswitch/InputSwitch.js b/components/lib/inputswitch/InputSwitch.js index 85cc44a969..9aa8849354 100644 --- a/components/lib/inputswitch/InputSwitch.js +++ b/components/lib/inputswitch/InputSwitch.js @@ -1,10 +1,10 @@ import * as React from 'react'; +import { PrimeReactContext } from '../api/Api'; +import { useHandleStyle } from '../componentbase/ComponentBase'; import { useMountEffect } from '../hooks/Hooks'; import { Tooltip } from '../tooltip/Tooltip'; import { classNames, DomHandler, mergeProps, ObjectUtils } from '../utils/Utils'; import { InputSwitchBase } from './InputSwitchBase'; -import { PrimeReactContext } from '../api/Api'; -import { useHandleStyle } from '../componentbase/ComponentBase'; export const InputSwitch = React.memo( React.forwardRef((inProps, ref) => { @@ -95,6 +95,7 @@ export const InputSwitch = React.memo( role: 'checkbox', 'aria-checked': checked }, + otherProps, ptm('root') ); const hiddenInputWrapperProps = mergeProps(