@hashicorp/design-system-components 0.7.0 → 0.7.1
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
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @hashicorp/design-system-components
|
|
2
2
|
|
|
3
|
+
## 0.7.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#184](https://github.com/hashicorp/design-system/pull/184) [`12056051`](https://github.com/hashicorp/design-system/commit/12056051f2c3ffebc09a85fcd802732e5d5dce7d) Thanks [@didoo](https://github.com/didoo)! - Fixed issue with "click outside" in Safari for "Disclosure/Breadcrumb/Dropdown"
|
|
8
|
+
|
|
3
9
|
## 0.7.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
|
@@ -20,7 +20,9 @@ export default class HdsDisclosureComponent extends Component {
|
|
|
20
20
|
clickOutsideDeactivates(event) {
|
|
21
21
|
// we check if the toggle reference belongs to the tree of parent DOM nodes
|
|
22
22
|
// of the element that was clicked and triggered the "click outside" event handling
|
|
23
|
-
|
|
23
|
+
// notice: we use "event.composedPath" here because is now fully supported (see https://caniuse.com/?search=event%20path)
|
|
24
|
+
const path = event.composedPath();
|
|
25
|
+
this.isToggleClicked = path.includes(this.toggleRef);
|
|
24
26
|
// here we need to return `true` to make sure that the focus trap will be deactivated (and allow the click event to do its thing (i.e. to pass-through to the element that was clicked).
|
|
25
27
|
// see: https://github.com/focus-trap/focus-trap#createoptions
|
|
26
28
|
return true;
|