From 7702bb67968104a64fa85ba7e893bf2393eeb3c5 Mon Sep 17 00:00:00 2001 From: MG12 Date: Fri, 20 Nov 2015 14:57:36 +0800 Subject: change value to null when clear input content to remove the react warning. --- examples/pick-time.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples') 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'); const now = new GregorianCalendar(zhCn); now.setTime(Date.now()); -function onChange(v) { - console.log(v && formatter.format(v)); +function onChange(value) { + console.log(value && formatter.format(value)); } ReactDom.render( -- cgit v1.2.3