@astrojs/starlight 0.0.11 → 0.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/components/Search.astro +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @astrojs/starlight
|
|
2
2
|
|
|
3
|
+
## 0.0.12
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#85](https://github.com/withastro/starlight/pull/85) [`c86c1d6`](https://github.com/withastro/starlight/commit/c86c1d6e93d978d13e42bbc449e0225a06793ba3) Thanks [@BryceRussell](https://github.com/BryceRussell)! - Improve outside click detection on the search modal
|
|
8
|
+
|
|
3
9
|
## 0.0.11
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/components/Search.astro
CHANGED
|
@@ -63,7 +63,7 @@ const t = useTranslations(Astro.props.locale);
|
|
|
63
63
|
|
|
64
64
|
/** Close the modal if a user clicks outside of the modal. */
|
|
65
65
|
const onWindowClick = (event: MouseEvent) => {
|
|
66
|
-
if (!dialogFrame.contains(event.target as Node)) closeModal();
|
|
66
|
+
if (document.body.contains(event.target as Node) && !dialogFrame.contains(event.target as Node)) closeModal();
|
|
67
67
|
};
|
|
68
68
|
|
|
69
69
|
const openModal = (event?: MouseEvent) => {
|