Skip to content

Commit

Permalink
Merge branch 'main' into fix/missing-props
Browse files Browse the repository at this point in the history
  • Loading branch information
huntabyte authored Sep 12, 2024
2 parents 8d405e2 + d3521e1 commit 81a81f6
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/healthy-mangos-hang.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"bits-ui": patch
---

fix(Date Pickers): expose `portal` prop
5 changes: 5 additions & 0 deletions .changeset/plenty-pears-add.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"bits-ui": patch
---

fix(Pagination): call `onPageChange` _after_ setting the `page`
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
type $$Props = Props;
export let portal: $$Props["portal"] = undefined;
export let open: $$Props["open"] = undefined;
export let onOpenChange: $$Props["onOpenChange"] = undefined;
export let value: $$Props["value"] = undefined;
Expand Down Expand Up @@ -167,6 +168,7 @@
$: updateOption("weekdayFormat", weekdayFormat);
$: updateOption("numberOfMonths", numberOfMonths);
$: updateOption("onOutsideClick", onOutsideClick);
$: updateOption("portal", portal);
</script>

<slot ids={$idValues} isInvalid={$localIsInvalid} />
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
export let open: $$Props["open"] = undefined;
export let onOpenChange: $$Props["onOpenChange"] = undefined;
export let portal: $$Props["portal"] = undefined;
export let value: $$Props["value"] = undefined;
export let onValueChange: $$Props["onValueChange"] = undefined;
export let placeholder: $$Props["placeholder"] = undefined;
Expand Down Expand Up @@ -54,6 +55,7 @@
isDateDisabled,
fixedWeeks,
calendarLabel,
portal,
disabled,
granularity,
hideTimeZone,
Expand Down Expand Up @@ -228,6 +230,7 @@
$: updateOption("weekdayFormat", weekdayFormat);
$: updateOption("numberOfMonths", numberOfMonths);
$: updateOption("onOutsideClick", onOutsideClick);
$: updateOption("portal", portal);
</script>

<slot
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
defaultPage: page,
onPageChange: ({ next }) => {
if (page !== next) {
onPageChange?.(next);
page = next;
onPageChange?.(next);
}
return next;
Expand Down

0 comments on commit 81a81f6

Please sign in to comment.