focus-trap
Advanced tools
Comparing version 2.4.2 to 2.4.3
# Changelog | ||
## 2.4.3 | ||
- Fixed: TypeScript signature for `activate` function. | ||
## 2.4.2 | ||
@@ -4,0 +8,0 @@ |
@@ -66,4 +66,4 @@ declare module "focus-trap" { | ||
export interface FocusTrap { | ||
activate(activateOptions: ActivateOptions): void; | ||
deactivate(deactivateOptions: DeactivateOptions): void; | ||
activate(activateOptions?: ActivateOptions): void; | ||
deactivate(deactivateOptions?: DeactivateOptions): void; | ||
pause(): void; | ||
@@ -70,0 +70,0 @@ unpause(): void; |
{ | ||
"name": "focus-trap", | ||
"version": "2.4.2", | ||
"version": "2.4.3", | ||
"description": "Trap focus within a DOM node.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -65,3 +65,3 @@ # focus-trap | ||
### focusTrap.activate() | ||
### focusTrap.activate([activateOptions]) | ||
@@ -80,2 +80,8 @@ Activates the focus trap, adding various event listeners to the document. | ||
`activateOptions`: | ||
These options are used to override the focus trap's default behavior for this particular activation. | ||
- **onActivate** {function | null | false}: Default: whatever you chose for `createOptions.onActivate`. `null` or `false` are the equivalent of a `noop`. | ||
### focusTrap.deactivate([deactivateOptions]) | ||
@@ -82,0 +88,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20205
153