]> git.immae.eu Git - github/fretlink/time-picker.git/blobdiff - examples/pick-time.js
change value to null when clear input content to remove the react warning.
[github/fretlink/time-picker.git] / examples / pick-time.js
index d5e3715df906121fe9e416dc1b3b89b8ed2cfbc0..70de23d5faa080185fdc2c0aee9cae57eecf0651 100644 (file)
@@ -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(