@ariakit/core
Advanced tools
Comparing version 0.4.13 to 0.4.14
# @ariakit/core | ||
## 0.4.14 | ||
- Fixed a regression on [Hovercard](https://ariakit.org/components/hovercard) that sometimes prevented it from closing when other popups were opened. | ||
- Fixed typings for [`onSubmit`](https://ariakit.org/reference/use-form-store#onsubmit) and [`onValidate`](https://ariakit.org/reference/use-form-store#onvalidate). | ||
- Improved JSDocs. | ||
## 0.4.13 | ||
@@ -4,0 +10,0 @@ |
@@ -189,3 +189,3 @@ import type { CollectionStoreFunctions, CollectionStoreItem, CollectionStoreOptions, CollectionStoreState } from "../collection/collection-store.ts"; | ||
*/ | ||
onValidate: (callback: FormStoreCallback<FormStoreState<T>>) => void; | ||
onValidate: (callback: FormStoreCallback<FormStoreState<T>>) => () => void; | ||
/** | ||
@@ -205,3 +205,3 @@ * Function that accepts a callback that will be used to submit the form when | ||
*/ | ||
onSubmit: (callback: FormStoreCallback<FormStoreState<T>>) => void; | ||
onSubmit: (callback: FormStoreCallback<FormStoreState<T>>) => () => void; | ||
/** | ||
@@ -208,0 +208,0 @@ * Validates the form. |
@@ -189,3 +189,3 @@ import type { CollectionStoreFunctions, CollectionStoreItem, CollectionStoreOptions, CollectionStoreState } from "../collection/collection-store.ts"; | ||
*/ | ||
onValidate: (callback: FormStoreCallback<FormStoreState<T>>) => void; | ||
onValidate: (callback: FormStoreCallback<FormStoreState<T>>) => () => void; | ||
/** | ||
@@ -205,3 +205,3 @@ * Function that accepts a callback that will be used to submit the form when | ||
*/ | ||
onSubmit: (callback: FormStoreCallback<FormStoreState<T>>) => void; | ||
onSubmit: (callback: FormStoreCallback<FormStoreState<T>>) => () => void; | ||
/** | ||
@@ -208,0 +208,0 @@ * Validates the form. |
@@ -105,3 +105,3 @@ "use client"; | ||
try { | ||
scope.addEventListener(type, listener, options); | ||
scope.document.addEventListener(type, listener, options); | ||
for (const frame of Array.from(scope.frames)) { | ||
@@ -114,3 +114,3 @@ children.push(addGlobalEventListener(type, listener, options, frame)); | ||
try { | ||
scope.removeEventListener(type, listener, options); | ||
scope.document.removeEventListener(type, listener, options); | ||
} catch (e) { | ||
@@ -117,0 +117,0 @@ } |
{ | ||
"name": "@ariakit/core", | ||
"version": "0.4.13", | ||
"version": "0.4.14", | ||
"description": "Ariakit core", | ||
@@ -5,0 +5,0 @@ "sideEffects": false, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
537982