partial param in locale case error
*Created by: xjplke*
I'm not sure why you call setOptionsFromProps in render.
I found that if locale just has part param, render would failed.
```
<DateRangePicker startDate={this.state.startDate}
endDate={this.state.endDate}
ranges={this.state.ranges}
opens='left'
onEvent={this.handleEvent}
locale={{
applyLabel: "ok",
customRangeLabel: "user define"}}> </DateRangePicker>
```
It seems because the picker's locale attribute is replaced by locale which I define.
```
if ($this.$picker) {
if (currentOptions) {
keys.forEach(function (key) {
$this.$picker.data('daterangepicker')[key] = currentOptions[key];//????? should it use object-assign when key's value is an object?
});
}
}
```
I removed the calling of setOptionsFromProps in render, it worked.
I think the custom options just need transmit to daterangepicker once, which already done in componentDidMount。
Otherwise, use Object.assign to copy partial params.
issue