Commit 47e346e0 authored by Robert Knight's avatar Robert Knight

Change callback prop return type from `any` to `void`

This ensures that the component doesn't attempt to call the prop and use
the result.
parent 79be98b0
...@@ -56,9 +56,9 @@ const noop = () => {}; ...@@ -56,9 +56,9 @@ const noop = () => {};
* when it is collapsed. * when it is collapsed.
* @prop {number} [overflowThreshold] - An additional margin of pixels by which * @prop {number} [overflowThreshold] - An additional margin of pixels by which
* the content height can exceed `collapsedHeight` before it becomes collapsible. * the content height can exceed `collapsedHeight` before it becomes collapsible.
* @prop {(isCollapsible: boolean) => any} [onCollapsibleChanged] - Called when the content height * @prop {(isCollapsible: boolean) => void} [onCollapsibleChanged] - Called when the content height
* exceeds or falls below `collapsedHeight + overflowThreshold`. * exceeds or falls below `collapsedHeight + overflowThreshold`.
* @prop {(collapsed: boolean) => any} [onToggleCollapsed] - When `inlineControls` is `false`, this * @prop {(collapsed: boolean) => void} [onToggleCollapsed] - When `inlineControls` is `false`, this
* function is called when the user requests to expand the content by clicking a * function is called when the user requests to expand the content by clicking a
* zone at the bottom of the container. * zone at the bottom of the container.
* @prop {Object} [settings] - Used for theming. * @prop {Object} [settings] - Used for theming.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment