From 6e5c7ded5009ce8319b5d84b2503d6550bc5aa8c Mon Sep 17 00:00:00 2001 From: b1ngx Date: Fri, 28 Jun 2019 16:07:21 +0800 Subject: [PATCH] onChange event add second parameter return current changed value. --- src/components/checkbox/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/checkbox/index.js b/src/components/checkbox/index.js index 93d064183..f0f4320f3 100644 --- a/src/components/checkbox/index.js +++ b/src/components/checkbox/index.js @@ -17,7 +17,7 @@ export default class AtCheckbox extends AtComponent { } else { selectedSet.delete(value) } - this.props.onChange([...selectedSet]) + this.props.onChange([...selectedSet], value) } render () {