From e164669ebf374e75c4bfb26a201d7a559cfd3b5a Mon Sep 17 00:00:00 2001 From: mertsincan Date: Fri, 20 Nov 2020 09:31:51 +0300 Subject: [PATCH] Update Mask doc and d.ts --- src/components/inputmask/InputMask.d.ts | 2 ++ src/showcase/inputmask/InputMaskDoc.js | 10 ++++++++++ 2 files changed, 12 insertions(+) diff --git a/src/components/inputmask/InputMask.d.ts b/src/components/inputmask/InputMask.d.ts index 8cc0f2a84a..83fb51546c 100644 --- a/src/components/inputmask/InputMask.d.ts +++ b/src/components/inputmask/InputMask.d.ts @@ -24,6 +24,8 @@ interface InputMaskProps { ariaLabelledBy?: string; onComplete?(e: {originalEvent: Event, value: any}): void; onChange?(e: {originalEvent: Event, value: any, target: {name: string, id: string, value: any}}): void; + onFocus?(e: Event): void; + onBlur?(e: Event): void; } export class InputMask extends React.Component {} diff --git a/src/showcase/inputmask/InputMaskDoc.js b/src/showcase/inputmask/InputMaskDoc.js index 55a58248ca..676da8beb9 100644 --- a/src/showcase/inputmask/InputMaskDoc.js +++ b/src/showcase/inputmask/InputMaskDoc.js @@ -391,6 +391,16 @@ import { InputMask } from 'primereact/inputmask'; + + onFocus + event: Browser event + Callback to invoke when input receives focus. + + + onBlur + event: Browser event + Callback to invoke when input loses focus. + onComplete event: Browser event