Skip to content

Commit

Permalink
Fix primefaces#5623 - Otherprops not working for InputSwitch
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware committed Jan 9, 2024
1 parent 33fbffa commit e4e8f49
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions components/lib/inputswitch/InputSwitch.js
Original file line number Diff line number Diff line change
@@ -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) => {
Expand Down Expand Up @@ -95,6 +95,7 @@ export const InputSwitch = React.memo(
role: 'checkbox',
'aria-checked': checked
},
otherProps,
ptm('root')
);
const hiddenInputWrapperProps = mergeProps(
Expand Down

0 comments on commit e4e8f49

Please sign in to comment.