Skip to content

Commit 64b4b48

Browse files
committed
fix onTimeout not properly registering
1 parent 3185546 commit 64b4b48

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

HISTORY.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111

1212
- Temporary load callback function is now removed after load
1313

14+
### Fixed
15+
16+
- `onTimeout` callback not properly registering
17+
1418
## [1.0.6] - 2022-11-25
1519

1620
### Added

src/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ export default function Turnstile({
130130
inplaceState.onLoad = onLoad;
131131
inplaceState.onError = onError;
132132
inplaceState.onExpire = onExpire;
133+
inplaceState.onTimeout = onTimeout;
133134
}, [onVerify, onLoad, onError, onExpire, onTimeout]);
134135

135136
return <div ref={ref} id={id} className={className} style={style} />;

0 commit comments

Comments
 (0)