Skip to content

Commit

Permalink
fix: picker onOk not correct, when first time, ref #2042.
Browse files Browse the repository at this point in the history
  • Loading branch information
zhang740 committed Nov 3, 2017
1 parent b7d4936 commit 9e3069a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/picker/AbstractPicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,9 @@ export default abstract class AbstractPicker extends React.Component<PickerProps
}

fixOnOk = (cascader: any) => {
if (cascader) {
if (cascader && cascader.onOk !== this.onOk) {
cascader.onOk = this.onOk;
cascader.forceUpdate();
}
}

Expand Down

0 comments on commit 9e3069a

Please sign in to comment.