Skip to content

Commit ecbd3d6

Browse files
authored
docs: clarify onOpenChange is not called for programmatic open changes (#2238)
1 parent 81afddb commit ecbd3d6

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎docs/src/lib/content/api-reference/shared.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,8 @@ export const valueDateRangeChangeFn = defineFunctionProp({
440440

441441
export const onOpenChangeProp = defineFunctionProp({
442442
definition: OnOpenChangeProp,
443-
description: "A callback function called when the open state changes.",
443+
description:
444+
"A callback function called when the component changes the open state, such as from user interaction. It is not called when you set `open` yourself, so run any related logic where you set it.",
444445
stringDefinition: "(open: boolean) => void",
445446
});
446447

0 commit comments

Comments
 (0)