@fluentui/react-utilities
Advanced tools
Comparing version 9.0.0-alpha.41 to 9.0.0-alpha.42
@@ -5,3 +5,26 @@ { | ||
{ | ||
"date": "Tue, 24 Aug 2021 07:32:28 GMT", | ||
"date": "Tue, 31 Aug 2021 07:34:22 GMT", | ||
"tag": "@fluentui/react-utilities_v9.0.0-alpha.42", | ||
"version": "9.0.0-alpha.42", | ||
"comments": { | ||
"none": [ | ||
{ | ||
"comment": "docs(composeUtils): update README", | ||
"author": "olfedias@microsoft.com", | ||
"commit": "3205b59f5d25006349b27883e4e3ec70eb14ad6f", | ||
"package": "@fluentui/react-utilities" | ||
} | ||
], | ||
"prerelease": [ | ||
{ | ||
"comment": "fix(useOnClickOutside): Treat right click/context menu as outside click", | ||
"author": "lingfan.gao@microsoft.com", | ||
"commit": "7a53d85571212d2f5b56a84fd84e29f5e1985daa", | ||
"package": "@fluentui/react-utilities" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"date": "Tue, 24 Aug 2021 07:34:48 GMT", | ||
"tag": "@fluentui/react-utilities_v9.0.0-alpha.41", | ||
@@ -8,0 +31,0 @@ "version": "9.0.0-alpha.41", |
# Change Log - @fluentui/react-utilities | ||
This log was last generated on Tue, 24 Aug 2021 07:32:28 GMT and should not be manually modified. | ||
This log was last generated on Tue, 31 Aug 2021 07:34:22 GMT and should not be manually modified. | ||
<!-- Start content --> | ||
## [9.0.0-alpha.42](https://github.com/microsoft/fluentui/tree/@fluentui/react-utilities_v9.0.0-alpha.42) | ||
Tue, 31 Aug 2021 07:34:22 GMT | ||
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-utilities_v9.0.0-alpha.41..@fluentui/react-utilities_v9.0.0-alpha.42) | ||
### Changes | ||
- fix(useOnClickOutside): Treat right click/context menu as outside click ([PR #19556](https://github.com/microsoft/fluentui/pull/19556) by lingfan.gao@microsoft.com) | ||
## [9.0.0-alpha.41](https://github.com/microsoft/fluentui/tree/@fluentui/react-utilities_v9.0.0-alpha.41) | ||
Tue, 24 Aug 2021 07:32:28 GMT | ||
Tue, 24 Aug 2021 07:34:48 GMT | ||
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-utilities_v9.0.0-alpha.40..@fluentui/react-utilities_v9.0.0-alpha.41) | ||
@@ -11,0 +20,0 @@ |
@@ -36,2 +36,3 @@ define(["require", "exports", "react", "./useEventCallback"], function (require, exports, React, useEventCallback_1) { | ||
element === null || element === void 0 ? void 0 : element.addEventListener('touchstart', conditionalHandler, true); | ||
element === null || element === void 0 ? void 0 : element.addEventListener('contextmenu', conditionalHandler, true); | ||
} | ||
@@ -45,2 +46,3 @@ // Garbage collect this event after it's no longer useful to avoid memory leaks | ||
element === null || element === void 0 ? void 0 : element.removeEventListener('touchstart', conditionalHandler, true); | ||
element === null || element === void 0 ? void 0 : element.removeEventListener('contextmenu', conditionalHandler, true); | ||
clearTimeout(timeoutId.current); | ||
@@ -47,0 +49,0 @@ currentEvent = undefined; |
@@ -57,2 +57,3 @@ "use strict"; | ||
element === null || element === void 0 ? void 0 : element.addEventListener('touchstart', conditionalHandler, true); | ||
element === null || element === void 0 ? void 0 : element.addEventListener('contextmenu', conditionalHandler, true); | ||
} // Garbage collect this event after it's no longer useful to avoid memory leaks | ||
@@ -67,2 +68,3 @@ | ||
element === null || element === void 0 ? void 0 : element.removeEventListener('touchstart', conditionalHandler, true); | ||
element === null || element === void 0 ? void 0 : element.removeEventListener('contextmenu', conditionalHandler, true); | ||
clearTimeout(timeoutId.current); | ||
@@ -69,0 +71,0 @@ currentEvent = undefined; |
@@ -48,2 +48,3 @@ import * as React from 'react'; | ||
element === null || element === void 0 ? void 0 : element.addEventListener('touchstart', conditionalHandler, true); | ||
element === null || element === void 0 ? void 0 : element.addEventListener('contextmenu', conditionalHandler, true); | ||
} // Garbage collect this event after it's no longer useful to avoid memory leaks | ||
@@ -58,2 +59,3 @@ | ||
element === null || element === void 0 ? void 0 : element.removeEventListener('touchstart', conditionalHandler, true); | ||
element === null || element === void 0 ? void 0 : element.removeEventListener('contextmenu', conditionalHandler, true); | ||
clearTimeout(timeoutId.current); | ||
@@ -60,0 +62,0 @@ currentEvent = undefined; |
{ | ||
"name": "@fluentui/react-utilities", | ||
"version": "9.0.0-alpha.41", | ||
"version": "9.0.0-alpha.42", | ||
"description": "A set of general React-specific utilities.", | ||
@@ -5,0 +5,0 @@ "main": "lib-commonjs/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
645867
7821
45