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