@juspay/svelte-ui-components 2.73.1 → 2.73.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.
@@ -420,6 +420,15 @@
420
420
  if (mode === 'range') {
421
421
  draftStart = start;
422
422
  draftEnd = end;
423
+ // Reseed the time-of-day inputs from the preset's own start/end so a
424
+ // time-bearing preset (e.g. "Last 30 minutes" / "Last 12 Hours") is not
425
+ // silently overwritten by a stale display string in handleApply's
426
+ // applyTimeDisplay. Without this, the committed range snaps back to the
427
+ // previous display time (often 12:00 AM) instead of the preset's window.
428
+ if (showTimeSelection) {
429
+ startTimeDisplay = formatTimeDisplay(start);
430
+ endTimeDisplay = formatTimeDisplay(end);
431
+ }
423
432
  // Navigate left calendar to show the preset's start month
424
433
  leftYear = start.getFullYear();
425
434
  leftMonth = start.getMonth();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juspay/svelte-ui-components",
3
- "version": "2.73.1",
3
+ "version": "2.73.2",
4
4
  "description": "A themeable Svelte 5 UI component library with CSS custom property driven styling",
5
5
  "keywords": [
6
6
  "svelte",