diff --git a/src/components/password/Password.d.ts b/src/components/password/Password.d.ts index 5ee4971acc..5166e6ac67 100644 --- a/src/components/password/Password.d.ts +++ b/src/components/password/Password.d.ts @@ -40,6 +40,7 @@ interface PasswordProps extends Omit, validatePattern: boolean): void; } diff --git a/src/components/password/Password.js b/src/components/password/Password.js index d2295745dc..8b6b26cc40 100644 --- a/src/components/password/Password.js +++ b/src/components/password/Password.js @@ -4,7 +4,7 @@ import DomHandler from '../utils/DomHandler'; import { tip } from '../tooltip/Tooltip'; import { InputText } from '../inputtext/InputText'; import ObjectUtils from '../utils/ObjectUtils'; -import { CSSTransition } from 'react-transition-group'; +import { CSSTransition } from '../transition/CSSTransition'; import { classNames } from '../utils/ClassNames'; import ConnectedOverlayScrollHandler from '../utils/ConnectedOverlayScrollHandler'; import { localeOption } from '../api/Locale'; @@ -38,6 +38,7 @@ export class Password extends Component { inputClassName: null, panelStyle: null, panelClassName: null, + transitionOptions: null, onInput: null }; @@ -65,6 +66,7 @@ export class Password extends Component { inputClassName: PropTypes.string, panelStyle: PropTypes.object, panelClassName: PropTypes.string, + transitionOptions: PropTypes.object, onInput: PropTypes.func }; @@ -451,7 +453,7 @@ export class Password extends Component { ); const panel = ( -
{header} diff --git a/src/showcase/password/PasswordDoc.js b/src/showcase/password/PasswordDoc.js index 71dba7f628..0e65fbdc79 100644 --- a/src/showcase/password/PasswordDoc.js +++ b/src/showcase/password/PasswordDoc.js @@ -346,6 +346,12 @@ import {Password} from 'primereact/password'; null Inline style of the overlay panel element. + + transitionOptions + object + null + The properties of CSSTransition can be customized, except for "nodeRef" and "in" properties. +