aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples
diff options
context:
space:
mode:
authorMG12 <wuzhao.mail@gmail.com>2015-11-20 14:57:36 +0800
committerMG12 <wuzhao.mail@gmail.com>2015-11-20 14:57:36 +0800
commit7702bb67968104a64fa85ba7e893bf2393eeb3c5 (patch)
tree6e29e2f103e9a25be9f6db046d0e0be87565b5e6 /examples
parent1d08ffb2f913e1cc9d39fd56cf9d0522d3bf29bf (diff)
downloadtime-picker-7702bb67968104a64fa85ba7e893bf2393eeb3c5.tar.gz
time-picker-7702bb67968104a64fa85ba7e893bf2393eeb3c5.tar.zst
time-picker-7702bb67968104a64fa85ba7e893bf2393eeb3c5.zip
change value to null when clear input content to remove the react warning.
Diffstat (limited to 'examples')
-rw-r--r--examples/pick-time.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/pick-time.js b/examples/pick-time.js
index d5e3715..70de23d 100644
--- a/examples/pick-time.js
+++ b/examples/pick-time.js
@@ -15,8 +15,8 @@ const formatter = new DateTimeFormat('HH:mm:ss');
15const now = new GregorianCalendar(zhCn); 15const now = new GregorianCalendar(zhCn);
16now.setTime(Date.now()); 16now.setTime(Date.now());
17 17
18function onChange(v) { 18function onChange(value) {
19 console.log(v && formatter.format(v)); 19 console.log(value && formatter.format(value));
20} 20}
21 21
22ReactDom.render( 22ReactDom.render(