Skip to content

Commit

Permalink
Merge pull request #78 from marsidev/77-onwidgetload-is-not-called-af…
Browse files Browse the repository at this point in the history
…ter-a-reload

Update docs
  • Loading branch information
marsidev authored Jul 14, 2024
2 parents 08ea4cb + c227f3c commit 4286050
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/lib/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ interface TurnstileProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onE
siteKey: RenderOptions['sitekey']

/**
* Callback invoked when the widget is loaded or reloaded (e.g. after a reset).
* Callback invoked after a successful render of the widget. The callback is passed the widget ID. It does not trigger when the widget is reset.
*/
onWidgetLoad?: (widgetID: string) => void

Expand Down

0 comments on commit 4286050

Please sign in to comment.