mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-06-02 06:29:40 +08:00
Add test for inputRef prop
This commit is contained in:
@@ -1,10 +1,13 @@
|
||||
import ReactInputMask from 'react-input-mask';
|
||||
import * as React from 'react';
|
||||
|
||||
let ref: HTMLInputElement | null = null;
|
||||
|
||||
<div>
|
||||
<ReactInputMask mask="+4\9 99 999 99" maskChar={null} />
|
||||
<ReactInputMask mask="+7 (999) 999-99-99" />
|
||||
<ReactInputMask mask="99-99-9999" defaultValue= "13-00-2017" />
|
||||
<ReactInputMask mask="99/99/9999" placeholder= "Enter birthdate" />
|
||||
<ReactInputMask mask="+7 (999) 999-99-99" />
|
||||
<ReactInputMask mask="+7 (999) 999-99-99" inputRef={(node) => ref = node} />
|
||||
</div>;
|
||||
|
||||
Reference in New Issue
Block a user