@povio/ui 2.2.9-rc.44 → 2.2.9-rc.45

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -111,8 +111,8 @@ var DatePickerBase = (props) => {
111
111
  labelProps
112
112
  };
113
113
  const onApply = () => {
114
- if (dialogState.value) state.setValue(normalizeByGranularity(dialogState.value));
115
- else state.setValue(dialogState.value);
114
+ const newValue = dialogState.value ? normalizeByGranularity(dialogState.value) : dialogState.value;
115
+ state.setValue(newValue);
116
116
  state.toggle();
117
117
  handleBlur(newValue);
118
118
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@povio/ui",
3
- "version": "2.2.9-rc.44",
3
+ "version": "2.2.9-rc.45",
4
4
  "type": "module",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",