@hexure/ui 1.4.1 → 1.4.2

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.
package/dist/cjs/index.js CHANGED
@@ -2650,7 +2650,12 @@ var DatePicker = function (_a) {
2650
2650
  setDayOptions(Array.from({ length: dDate.daysInMonth() }, function (_, i) { return ({
2651
2651
  value: i + 1,
2652
2652
  }); }));
2653
- onChange(dDate.format('YYYY-MM-DD'));
2653
+ // Mimicing browser event structure
2654
+ onChange({
2655
+ target: {
2656
+ value: dDate.format('YYYY-MM-DD'),
2657
+ },
2658
+ });
2654
2659
  }, [dDate]);
2655
2660
  var handleDayChange = function (e) {
2656
2661
  var date = parseInt(e.target.value, 10);